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 b9659ae..ab8d26d 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
 
 
 /**