Some cleanup. Removed sharedmemory_global.h
[umurmur.git] / shm_utils / mon-umurmurd / mon-umurmurd.c
index 7cd5697f68abcbab3d98fdb0c4eec86516ed86c5..393be378491c61c488d585d1cd16a823ee6131e8 100644 (file)
@@ -7,11 +7,14 @@
 #include <sys/stat.h>\r
 #include <sys/mman.h>\r
 #include <sys/types.h>\r
-#include "../../src/sharedmemory.h"\r
-#include "../../src/sharedmemory_global.h"\r
+#include "../../src/sharedmemory_struct.h"\r
 \r
 enum{ NOP_SHM, WAIT_ATTACH_SHM, TRY_ATTACH_SHM, MAT_SHM, CLEAN_UP_SHM, RUN_SHM };\r
 \r
+int shm_fd;\r
+shm_t *shmptr = NULL;\r
+char shm_file_name[128];\r
+\r
 int wait = 0, opt;\r
 uint8_t last, shm_statem = TRY_ATTACH_SHM;\r
 \r
@@ -161,4 +164,4 @@ int cc;
         {\r
             exit(EXIT_FAILURE); //You dont have to exit you could just report the fact that the data is not valid \r
         }\r
-}
\ No newline at end of file
+}\r