summaryrefslogtreecommitdiffstats
path: root/usr.sbin/edquota/edquota.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2001-07-09 09:24:06 +0000
committerbrian <brian@FreeBSD.org>2001-07-09 09:24:06 +0000
commit8636b161b333b18525b6f5ffc5139079c29c0d63 (patch)
treea109115514a8774e981280efca775db8a410df5b /usr.sbin/edquota/edquota.c
parentef44874abb9460f2956eba8e3233154af304f5b1 (diff)
downloadFreeBSD-src-8636b161b333b18525b6f5ffc5139079c29c0d63.zip
FreeBSD-src-8636b161b333b18525b6f5ffc5139079c29c0d63.tar.gz
Fix the type of the NULL arg to execl()
Idea from: Theo de Raadt <deraadt@openbsd.org>
Diffstat (limited to 'usr.sbin/edquota/edquota.c')
-rw-r--r--usr.sbin/edquota/edquota.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/edquota/edquota.c b/usr.sbin/edquota/edquota.c
index 874325f..71dcd1b 100644
--- a/usr.sbin/edquota/edquota.c
+++ b/usr.sbin/edquota/edquota.c
@@ -385,7 +385,7 @@ editit(tmpfile)
setuid(getuid());
if ((ed = getenv("EDITOR")) == (char *)0)
ed = _PATH_VI;
- execlp(ed, ed, tmpfile, 0);
+ execlp(ed, ed, tmpfile, (char *)0);
err(1, "%s", ed);
}
waitpid(pid, &stat, 0);
OpenPOWER on IntegriCloud