summaryrefslogtreecommitdiffstats
path: root/usr.sbin/newsyslog
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2001-11-14 17:00:58 +0000
committerobrien <obrien@FreeBSD.org>2001-11-14 17:00:58 +0000
commitbaad1b4d27696fdb8c7c8ac265b1588d99ef2aad (patch)
tree62c288c55d59d2585d6c550a5501d6dadb063a28 /usr.sbin/newsyslog
parent1b1306776bf04fdfe45ba959c9e5dc34f57019cf (diff)
downloadFreeBSD-src-baad1b4d27696fdb8c7c8ac265b1588d99ef2aad.zip
FreeBSD-src-baad1b4d27696fdb8c7c8ac265b1588d99ef2aad.tar.gz
Fix the type of the NULL arg to execl().
Diffstat (limited to 'usr.sbin/newsyslog')
-rw-r--r--usr.sbin/newsyslog/newsyslog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/newsyslog/newsyslog.c b/usr.sbin/newsyslog/newsyslog.c
index 20033ce..3d7ff8a 100644
--- a/usr.sbin/newsyslog/newsyslog.c
+++ b/usr.sbin/newsyslog/newsyslog.c
@@ -751,7 +751,7 @@ bzcompress_log(char *log)
if (pid < 0)
err(1, "bzip2 fork");
else if (!pid) {
- execl(_PATH_BZIP2, _PATH_BZIP2, "-f", tmp, 0);
+ execl(_PATH_BZIP2, _PATH_BZIP2, "-f", tmp, (char *)0);
err(1, _PATH_BZIP2);
}
}
OpenPOWER on IntegriCloud