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.sbin/kgzip | |
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.sbin/kgzip')
-rw-r--r-- | usr.sbin/kgzip/kgzcmp.c | 2 | ||||
-rw-r--r-- | usr.sbin/kgzip/kgzld.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/kgzip/kgzcmp.c b/usr.sbin/kgzip/kgzcmp.c index b692315..5def730 100644 --- a/usr.sbin/kgzip/kgzcmp.c +++ b/usr.sbin/kgzip/kgzcmp.c @@ -136,7 +136,7 @@ mk_data(const struct iodesc * idi, const struct iodesc * ido, close(idi->fd); dup2(ido->fd, STDOUT_FILENO); close(ido->fd); - execlp("gzip", "gzip", "-9", NULL); + execlp("gzip", "gzip", "-9", (char *)NULL); warn(NULL); _exit(1); default: diff --git a/usr.sbin/kgzip/kgzld.c b/usr.sbin/kgzip/kgzld.c index 3e1d2d1..4f6acc8 100644 --- a/usr.sbin/kgzip/kgzld.c +++ b/usr.sbin/kgzip/kgzld.c @@ -85,10 +85,10 @@ kgzld(struct kgz_hdr * kh, const char *f1, const char *f2) case 0: if (format == F_AOUT) execlp("ld", "ld", "-aout", "-Z", "-T", addr, "-o", f2, - loader, f1, NULL); + loader, f1, (char *)NULL); else execlp("ld", "ld", "-Ttext", addr, "-o", f2, loader, f1, - NULL); + (char *)NULL); warn(NULL); _exit(1); default: |