summaryrefslogtreecommitdiff
path: root/sbin/reboot
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2001-07-09 07:05:10 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2001-07-09 07:05:10 +0000
commite794dc8249450a31cf35cb2aa88a33779325b689 (patch)
tree7fe943aa48c43bd24ed6b9267ab44c0191c44d4a /sbin/reboot
parent5b1ba3114a10793470c731e714160f24131b690d (diff)
correct type on last arg to execl(); nordin@cse.ogi.edu
Diffstat (limited to 'sbin/reboot')
-rw-r--r--sbin/reboot/reboot.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/reboot/reboot.c b/sbin/reboot/reboot.c
index d86c4b1541d..19cda4b9f52 100644
--- a/sbin/reboot/reboot.c
+++ b/sbin/reboot/reboot.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: reboot.c,v 1.19 2001/06/04 14:59:49 mickey Exp $ */
+/* $OpenBSD: reboot.c,v 1.20 2001/07/09 07:04:46 deraadt Exp $ */
/* $NetBSD: reboot.c,v 1.8 1995/10/05 05:36:22 mycroft Exp $ */
/*
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)reboot.c 8.1 (Berkeley) 6/5/93";
#else
-static char rcsid[] = "$OpenBSD: reboot.c,v 1.19 2001/06/04 14:59:49 mickey Exp $";
+static char rcsid[] = "$OpenBSD: reboot.c,v 1.20 2001/07/09 07:04:46 deraadt Exp $";
#endif
#endif /* not lint */
@@ -196,7 +196,7 @@ main(argc, argv)
t.c_oflag |= (ONLCR | OPOST);
tcsetattr(0, TCSANOW, &t);
- execl(_PATH_BSHELL, "sh", _PATH_RC, "shutdown", NULL);
+ execl(_PATH_BSHELL, "sh", _PATH_RC, "shutdown", (char *)NULL);
_exit(1);
default:
waitpid(pid, NULL, 0);