diff options
author | harti <harti@FreeBSD.org> | 2003-10-30 15:04:37 +0000 |
---|---|---|
committer | harti <harti@FreeBSD.org> | 2003-10-30 15:04:37 +0000 |
commit | 82f1f29be8fd527d0afa911f0c7dfa9d1a3b67ef (patch) | |
tree | 0ec11c1ce4a0dfab86b383909ec0fc12a74422e2 /sbin/sunlabel | |
parent | d72fb90a16fc02ad0f59666ff6dd0c11c212c69c (diff) | |
download | FreeBSD-src-82f1f29be8fd527d0afa911f0c7dfa9d1a3b67ef.zip FreeBSD-src-82f1f29be8fd527d0afa911f0c7dfa9d1a3b67ef.tar.gz |
Use (char *)NULL to terminate the argument list for execlp().
Without this cast the compiler cannot know that it has to convert the
null pointer constant NULL to a null pointer.
Diffstat (limited to 'sbin/sunlabel')
-rw-r--r-- | sbin/sunlabel/sunlabel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/sunlabel/sunlabel.c b/sbin/sunlabel/sunlabel.c index 1de2562..0425bee 100644 --- a/sbin/sunlabel/sunlabel.c +++ b/sbin/sunlabel/sunlabel.c @@ -423,7 +423,7 @@ edit_label(struct sun_disklabel *sl, const char *disk, const char *bootpath) if (pid == 0) { if ((editor = getenv("EDITOR")) == NULL) editor = _PATH_VI; - execlp(editor, editor, tmpfil, NULL); + execlp(editor, editor, tmpfil, (char *)NULL); err(1, "execlp %s", editor); } status = 0; |