fix warning
authorNils Durner <durner@gnunet.org>
Fri, 8 Oct 2010 15:58:28 +0000 (15:58 +0000)
committerNils Durner <durner@gnunet.org>
Fri, 8 Oct 2010 15:58:28 +0000 (15:58 +0000)
src/include/winproc.h
src/util/common_logging.c
src/util/os_load.c
src/util/winproc.c

index c036ba965ed562c40e2c0044cc98291ed643742e..5dd29df5669838cf50a58cd624c1da1c4b779677 100644 (file)
@@ -205,7 +205,7 @@ extern "C"
                             DWORD dwAccessMask);
   char *winErrorStr (const char *prefix, int dwErr);
 
-  void GNInitWinEnv ();
+  int GNInitWinEnv ();
   void GNShutdownWinEnv ();
 
 #ifdef __cplusplus
index e0560098610098317df968721b5603d9cab3eef0..b175016901e8b0885551d19540a77a435f02d4b7 100644 (file)
@@ -591,7 +591,7 @@ void __attribute__ ((constructor)) GNUNET_util_cl_init ()
 {
   GNUNET_stderr = stderr;
 #ifdef MINGW
-  InitWinEnv (NULL);
+  GNInitWinEnv (NULL);
 #endif
 }
 
@@ -602,7 +602,7 @@ void __attribute__ ((constructor)) GNUNET_util_cl_init ()
 void __attribute__ ((destructor)) GNUNET_util_cl_fini ()
 {
 #ifdef MINGW
-  ShutdownWinEnv ();
+  GNShutdownWinEnv ();
 #endif
 }
 
index e54147ff4ed2c5045898a2cffc91dea7dcaec855..53e9a84c389fc4bd4c9cff5ef976303073b5dd81 100644 (file)
@@ -655,7 +655,7 @@ void __attribute__ ((constructor)) GNUNET_cpustats_ltdl_init ()
   initMachCpuStats ();
   updateUsage ();               /* initialize */
 #elif MINGW
-  InitWinEnv (NULL);
+  GNInitWinEnv (NULL);
   updateUsage ();               /* initialize */
 #else
   updateUsage ();               /* initialize */
@@ -676,7 +676,7 @@ void __attribute__ ((destructor)) GNUNET_cpustats_ltdl_fini ()
 #elif defined(DARWIN)
   GNUNET_free_non_null (prev_cpu_load);
 #elif MINGW
-  ShutdownWinEnv ();
+  GNShutdownWinEnv ();
 #endif
 }
 
index bd2f2d09101c85f2e95e726b24567c36d65061fb..2df638362034b45f3cce0512294c3a99bfcc4eca 100644 (file)
@@ -83,7 +83,7 @@ plibc_panic (int err, char *msg)
  * @return Error code from winerror.h, ERROR_SUCCESS on success
 */
 int
-InitWinEnv ()
+GNInitWinEnv ()
 {
   int ret;
 
@@ -231,7 +231,7 @@ InitWinEnv ()
  * Clean up Windows environment
  */
 void
-ShutdownWinEnv ()
+GNShutdownWinEnv ()
 {
   plibc_shutdown ();