snap.h: Fix HSA_ITEM.
authorDaniel Richard G <skunk@iSKUNK.ORG>
Sat, 4 Aug 2012 11:22:45 +0000 (13:22 +0200)
committerAndre Noll <maan@systemlinux.org>
Sat, 4 Aug 2012 11:34:54 +0000 (13:34 +0200)
This changes the second definition of HSA_ITEM to avoid C99
subscripted element initializers.

snap.h

diff --git a/snap.h b/snap.h
index b9659aeb0784a92744ea5b3a95d37ad3908aafd4..ab8d26ddae988c8e50678894df1f92546798e6fc 100644 (file)
--- a/snap.h
+++ b/snap.h
@@ -19,7 +19,7 @@
 #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
 
 
 /**