# HG changeset patch # User Mark Doliner # Date 1102559041 0 # Node ID 5aa8ed1ec91e921c9b57f4ed5457043805014425 # Parent 5eb81f349da71bd2e5ae67473af3a2a8a72155ba [gaim-migrate @ 11541] "I love a circus." --Guybrush Threepwood committer: Tailor Script diff -r 5eb81f349da7 -r 5aa8ed1ec91e src/gtkmain.c --- a/src/gtkmain.c Thu Dec 09 02:12:18 2004 +0000 +++ b/src/gtkmain.c Thu Dec 09 02:24:01 2004 +0000 @@ -129,19 +129,18 @@ static void clean_pid(void) { -#ifndef _WIN32 int status; pid_t pid; do { pid = waitpid(-1, &status, WNOHANG); } while (pid != 0 && pid != (pid_t)-1); - if(pid == (pid_t)-1 && errno != ECHILD) { + + if ((pid == (pid_t) - 1) && (errno != ECHILD)) { char errmsg[BUFSIZ]; snprintf(errmsg, BUFSIZ, "Warning: waitpid() returned %d", pid); perror(errmsg); } -#endif } void @@ -449,7 +448,9 @@ gboolean gui_check; gboolean debug_enabled; gchar *gaimrc, *accountsxml; +#if HAVE_SIGNAL_H char errmsg[BUFSIZ]; +#endif struct option long_options[] = { {"acct", no_argument, NULL, 'a'},