summaryrefslogtreecommitdiffstats
path: root/usr.sbin/cron
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/cron
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/cron')
-rw-r--r--usr.sbin/cron/crontab/crontab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/cron/crontab/crontab.c b/usr.sbin/cron/crontab/crontab.c
index 3ff3e7d..d070cd7 100644
--- a/usr.sbin/cron/crontab/crontab.c
+++ b/usr.sbin/cron/crontab/crontab.c
@@ -408,7 +408,7 @@ edit_cmd() {
err(ERROR_EXIT, "chdir(/tmp)");
if (strlen(editor) + strlen(Filename) + 2 >= MAX_TEMPSTR)
errx(ERROR_EXIT, "editor or filename too long");
- execlp(editor, editor, Filename, NULL);
+ execlp(editor, editor, Filename, (char *)NULL);
err(ERROR_EXIT, "%s", editor);
/*NOTREACHED*/
default:
OpenPOWER on IntegriCloud