]> git.tuebingen.mpg.de Git - dss.git/blobdiff - snap.h
Make the dss log facility C89 conform.
[dss.git] / snap.h
diff --git a/snap.h b/snap.h
index b9659aeb0784a92744ea5b3a95d37ad3908aafd4..fc8285087c7a74e54353a5508b9f3b4458f7cb9b 100644 (file)
--- a/snap.h
+++ b/snap.h
        HSA_ITEM(HS_RUNNING, "in progress"), \
        HSA_ITEM(HS_SUCCESS, "process terminated successfully"), \
        HSA_ITEM(HS_NEEDS_RESTART, "restart needed"), \
-       HSA_ITEM(HS_POST_RUNNING, "post-hook running"), \
+       HSA_ITEM(HS_POST_RUNNING, "post-hook running")
 
 
 #define HSA_ITEM(x, y) x
 enum hook_status {HOOK_STATUS_ARRAY};
 #undef HSA_ITEM
-#define HSA_ITEM(x, y) [x] = y
+#define HSA_ITEM(x, y) y
 
 
 /**
@@ -37,7 +37,7 @@ enum snapshot_status_flags {
        /** The rsync process terminated successfully. */
        SS_COMPLETE = 1,
        /** The rm process is running to remove this snapshot. */
-       SS_BEING_DELETED = 2,
+       SS_BEING_DELETED = 2
 };
 
 /** Describes one snapshot. */