From 1b91e3bfc11157aa6e55bcf234fbf84400bbf082 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Fri, 16 Apr 2010 17:09:16 +0200 Subject: Fix coding style If NULL is 0L instead of (void *) 0 then this explicit cast is needed for va_arg functions. Thanks to dcoppa@openbsd. --- src/ui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ui.c') diff --git a/src/ui.c b/src/ui.c index eb5e232..1295a33 100644 --- a/src/ui.c +++ b/src/ui.c @@ -527,7 +527,7 @@ void BarUiStartEventCmd (const BarSettings_t *settings, const char *type, /* child */ close (pipeFd[1]); dup2 (pipeFd[0], fileno (stdin)); - execl (settings->eventCmd, settings->eventCmd, type, NULL); + execl (settings->eventCmd, settings->eventCmd, type, (char *) NULL); BarUiMsg (MSG_ERR, "Cannot start eventcmd. (%s)\n", strerror (errno)); close (pipeFd[0]); exit (1); -- cgit v1.2.3