diff options
author | Berke Viktor <bviktor@hexchat.org> | 2012-07-21 14:26:19 +0200 |
---|---|---|
committer | Berke Viktor <bviktor@hexchat.org> | 2012-07-21 14:26:19 +0200 |
commit | e7f723539d39f20092aabfb5b51826807e016fe3 (patch) | |
tree | 88c887012ba3fbf1b9b9c1208453a98568cbad3b /src/common/util.c | |
parent | 4cae471af3a4d8e9c7457f76186da809879f566f (diff) |
Some aid for compiler warnings
Diffstat (limited to 'src/common/util.c')
-rw-r--r-- | src/common/util.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/common/util.c b/src/common/util.c index 74146b21..28352189 100644 --- a/src/common/util.c +++ b/src/common/util.c @@ -1365,10 +1365,12 @@ int my_poptParseArgvString(const char * s, int * argcPtr, char *** argvPtr) { int util_exec (const char *cmd) { - int pid; char **argv; int argc; +#ifndef WIN32 + int pid; int fd; +#endif if (my_poptParseArgvString (cmd, &argc, &argv) != 0) return -1; @@ -1398,9 +1400,9 @@ util_exec (const char *cmd) int util_execv (char * const argv[]) { +#ifndef WIN32 int pid, fd; -#ifndef WIN32 pid = fork (); if (pid == -1) return -1; |