Permalink
Browse files

Minor compiler warning bug fix for OpenBSD systems.

Compiling psad *.c files on OpenBSD issued the following warning before this fix:

/usr/bin/gcc -Wall -O psadwatchd.c psad_funcs.c strlcpy.c strlcat.c -o psadwatchd
psad_funcs.c: In function 'send_alert_email':
psad_funcs.c:325: warning: missing sentinel in function call
  • Loading branch information...
1 parent 029059c commit 10e1418f3af872f706cffe0410098fa2ee428514 @mrash committed Mar 25, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 psad_funcs.c
View
@@ -321,7 +321,7 @@ void send_alert_email(const char *shCmd, const char *mailCmd,
else if (child_pid > 0)
wait(NULL); /* mail better work */
else
- execle(shCmd, shCmd, "-c", mail_line, NULL, NULL); /* don't use env */
+ execle(shCmd, shCmd, "-c", mail_line, (char *)NULL, (char *)NULL); /* don't use env */
return;
}

0 comments on commit 10e1418

Please sign in to comment.