summaryrefslogtreecommitdiff
path: root/usr.sbin/cron/crontab.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2003-07-30 20:20:02 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2003-07-30 20:20:02 +0000
commite526709cbd6cd1c721213d09a733738259feed7b (patch)
tree2c05f3043bd611b71e7e66d5c637a4b9816a98fa /usr.sbin/cron/crontab.c
parent354a17dda23f19f66fbf81e6fd18c6b4189daa3f (diff)
Use (char *)NULL instead of (char *)0 in execl and execle; Andrey Matveev
Diffstat (limited to 'usr.sbin/cron/crontab.c')
-rw-r--r--usr.sbin/cron/crontab.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/cron/crontab.c b/usr.sbin/cron/crontab.c
index 26cdfcee5c1..07fbf4ae2f7 100644
--- a/usr.sbin/cron/crontab.c
+++ b/usr.sbin/cron/crontab.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: crontab.c,v 1.42 2003/03/15 00:39:01 millert Exp $ */
+/* $OpenBSD: crontab.c,v 1.43 2003/07/30 20:20:01 millert Exp $ */
/* Copyright 1988,1990,1993,1994 by Paul Vixie
* All rights reserved
@@ -22,7 +22,7 @@
*/
#if !defined(lint) && !defined(LINT)
-static char const rcsid[] = "$OpenBSD: crontab.c,v 1.42 2003/03/15 00:39:01 millert Exp $";
+static char const rcsid[] = "$OpenBSD: crontab.c,v 1.43 2003/07/30 20:20:01 millert Exp $";
#endif
/* crontab - install and manage per-user crontab files
@@ -405,7 +405,7 @@ edit_cmd(void) {
ProgramName);
exit(ERROR_EXIT);
}
- execlp(_PATH_BSHELL, _PATH_BSHELL, "-c", q, (char *)0);
+ execlp(_PATH_BSHELL, _PATH_BSHELL, "-c", q, (char *)NULL);
perror(editor);
exit(ERROR_EXIT);
/*NOTREACHED*/