diff options
author | brian <brian@FreeBSD.org> | 2001-07-09 09:24:06 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2001-07-09 09:24:06 +0000 |
commit | 8636b161b333b18525b6f5ffc5139079c29c0d63 (patch) | |
tree | a109115514a8774e981280efca775db8a410df5b /usr.bin/enigma | |
parent | ef44874abb9460f2956eba8e3233154af304f5b1 (diff) | |
download | FreeBSD-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.bin/enigma')
-rw-r--r-- | usr.bin/enigma/enigma.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/enigma/enigma.c b/usr.bin/enigma/enigma.c index 546b144..e1c2f94 100644 --- a/usr.bin/enigma/enigma.c +++ b/usr.bin/enigma/enigma.c @@ -56,11 +56,11 @@ setup(pw) close(1); dup(pf[0]); dup(pf[1]); - execlp("makekey", "-", 0); - execl("/usr/libexec/makekey", "-", 0); /* BSDI */ - execl("/usr/lib/makekey", "-", 0); - execl("/usr/bin/makekey", "-", 0); /* IBM */ - execl("/lib/makekey", "-", 0); + execlp("makekey", "-", (char *)0); + execl("/usr/libexec/makekey", "-", (char *)0); /* BSDI */ + execl("/usr/lib/makekey", "-", (char *)0); + execl("/usr/bin/makekey", "-", (char *)0); /* IBM */ + execl("/lib/makekey", "-", (char *)0); perror("makekey"); fprintf(stderr, "enigma: cannot execute 'makekey', aborting\n"); exit(1); |