summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2012-03-02 16:49:44 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2012-03-09 07:02:50 -0600
commit0202181245297a9e847c05f4a18623219d95e93e (patch)
tree57a794037f890fef59dd00495b331f8452dd4148
parent0d10f627089066fc58894c1fa4b066503ed6bac3 (diff)
downloadfocaccia-qemu-0202181245297a9e847c05f4a18623219d95e93e.tar.gz
focaccia-qemu-0202181245297a9e847c05f4a18623219d95e93e.zip
libcacard: Fix compilation with gcc-4.7
VCARD_ATR_PREFIX is used as part of an array initializer so it should
not have () around it, so far this happened to work, but gcc-4.7 does
not like it.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r--libcacard/vcardt.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcacard/vcardt.h b/libcacard/vcardt.h
index d4d8e2ed18..d3e9522774 100644
--- a/libcacard/vcardt.h
+++ b/libcacard/vcardt.h
@@ -26,8 +26,8 @@ typedef struct VCardEmulStruct VCardEmul;
 #define MAX_CHANNEL 4
 
 /* create an ATR with appropriate historical bytes */
-#define VCARD_ATR_PREFIX(size) (0x3b, 0x68+(size), 0x00, 0xff, \
-                               'V', 'C', 'A', 'R', 'D', '_')
+#define VCARD_ATR_PREFIX(size) 0x3b, 0x68+(size), 0x00, 0xff, \
+                               'V', 'C', 'A', 'R', 'D', '_'
 
 
 typedef enum {