fix warnings
authorNils Durner <durner@gnunet.org>
Fri, 8 Oct 2010 16:26:06 +0000 (16:26 +0000)
committerNils Durner <durner@gnunet.org>
Fri, 8 Oct 2010 16:26:06 +0000 (16:26 +0000)
src/util/os_priority.c
src/util/scheduler.c
src/util/service.c

index 34900a1cc3c31eaa74e85cb267a5265a4b114f6a..e658af1efa61a49c82ccbe5ba37de259586f9cf1 100644 (file)
@@ -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++;
index 3acb27aa073b23bc71bed9981750b23f513c1f52..d58212aecbc1b0369112136c9db4a4f2cfffc0a5 100644 (file)
@@ -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;
index 48fb59e28e4647119e2f73459ef287b7650b3fe4..d18d4e9e3d6597bb827579a1ded4dfec69c817d0 100644 (file)
@@ -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"))