summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLars-Dominik Braun <PromyLOPh@lavabit.com>2010-04-16 17:09:16 +0200
committerLars-Dominik Braun <PromyLOPh@lavabit.com>2010-04-16 17:09:16 +0200
commit1b91e3bfc11157aa6e55bcf234fbf84400bbf082 (patch)
treedecd2dd376f1a273a9bfc8c010d3d15d860d4d80 /src
parentafa6a1719d76f1a1dde7dc2de62fb32de5dc6fba (diff)
downloadpianobar-1b91e3bfc11157aa6e55bcf234fbf84400bbf082.tar.gz
pianobar-1b91e3bfc11157aa6e55bcf234fbf84400bbf082.tar.bz2
pianobar-1b91e3bfc11157aa6e55bcf234fbf84400bbf082.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/ui.c2
1 files changed, 1 insertions, 1 deletions
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);