From: Nils Durner Date: Fri, 8 Oct 2010 16:26:06 +0000 (+0000) Subject: fix warnings X-Git-Tag: initial-import-from-subversion-38251~20093 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2d21fc1fc47cb939af263069eecf9306d5ca79bb;p=oweals%2Fgnunet.git fix warnings --- diff --git a/src/util/os_priority.c b/src/util/os_priority.c index 34900a1cc..e658af1ef 100644 --- a/src/util/os_priority.c +++ b/src/util/os_priority.c @@ -449,7 +449,7 @@ GNUNET_OS_start_process_v (const int *lsocks, GNUNET_assert (lsocks == NULL); /* Count the number of arguments */ - arg = argv; + arg = (char **) argv; while (*arg) { arg++; diff --git a/src/util/scheduler.c b/src/util/scheduler.c index 3acb27aa0..d58212aec 100644 --- a/src/util/scheduler.c +++ b/src/util/scheduler.c @@ -738,9 +738,11 @@ GNUNET_SCHEDULER_run (GNUNET_SCHEDULER_Task task, void *task_cls) int ret; struct GNUNET_SIGNAL_Context *shc_int; struct GNUNET_SIGNAL_Context *shc_term; +#ifndef MINGW struct GNUNET_SIGNAL_Context *shc_quit; struct GNUNET_SIGNAL_Context *shc_hup; struct GNUNET_SIGNAL_Context *shc_pipe; +#endif unsigned long long last_tr; unsigned int busy_wait_warning; const struct GNUNET_DISK_FileHandle *pr; diff --git a/src/util/service.c b/src/util/service.c index 48fb59e28..d18d4e9e3 100644 --- a/src/util/service.c +++ b/src/util/service.c @@ -1094,11 +1094,13 @@ setup_service (struct GNUNET_SERVICE_Context *sctx) { struct GNUNET_TIME_Relative idleout; int tolerant; +#ifndef MINGW const char *lpid; unsigned int pid; const char *nfds; unsigned int cnt; int flags; +#endif if (GNUNET_CONFIGURATION_have_value (sctx->cfg, sctx->serviceName, "TIMEOUT"))