From 8636b161b333b18525b6f5ffc5139079c29c0d63 Mon Sep 17 00:00:00 2001 From: brian Date: Mon, 9 Jul 2001 09:24:06 +0000 Subject: Fix the type of the NULL arg to execl() Idea from: Theo de Raadt --- libexec/pppoed/pppoed.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libexec/pppoed') diff --git a/libexec/pppoed/pppoed.c b/libexec/pppoed/pppoed.c index fa55252..bb46984 100644 --- a/libexec/pppoed/pppoed.c +++ b/libexec/pppoed/pppoed.c @@ -410,7 +410,7 @@ Spawn(const char *prog, const char *acname, const char *provider, setsid(); syslog(LOG_INFO, "Executing: %s", exec); - execlp(_PATH_BSHELL, _PATH_BSHELL, "-c", exec, NULL); + execlp(_PATH_BSHELL, _PATH_BSHELL, "-c", exec, (char *)NULL); syslog(LOG_ERR, "execlp failed: %m"); _exit(EX_OSFILE); -- cgit v1.1