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
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;
}