gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r35544 - Extractor/src/main


From: gnunet
Subject: [GNUnet-SVN] r35544 - Extractor/src/main
Date: Tue, 21 Apr 2015 17:52:09 +0200

Author: LRN
Date: 2015-04-21 17:52:09 +0200 (Tue, 21 Apr 2015)
New Revision: 35544

Modified:
   Extractor/src/main/extractor_plugin_main.c
Log:
Use HANDLE for shm_id on W32

Modified: Extractor/src/main/extractor_plugin_main.c
===================================================================
--- Extractor/src/main/extractor_plugin_main.c  2015-04-20 20:10:57 UTC (rev 
35543)
+++ Extractor/src/main/extractor_plugin_main.c  2015-04-21 15:52:09 UTC (rev 
35544)
@@ -39,6 +39,13 @@
 #include <signal.h>
 #endif
 
+#if WINDOWS
+#define SHM_ID HANDLE
+#define INVALID_SHM_ID NULL
+#else
+#define SHM_ID int
+#define INVALID_SHM_ID -1
+#endif
 
 /**
  * Closure we use for processing requests inside the helper process.
@@ -73,7 +80,7 @@
   /**
    * Handle to the shared memory.
    */
-  int shm_id;
+  SHM_ID shm_id;
   
   /**
    * Size of the shared memory map.
@@ -619,7 +626,7 @@
   pc.plugin = plugin;
   pc.in = in;
   pc.out = out;
-  pc.shm_id = -1;
+  pc.shm_id = INVALID_SHM_ID;
   pc.shm = NULL;
   pc.shm_map_size = 0;
   process_requests (&pc);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]