[Pcsclite-cvs-commit] r6638 - /trunk/PCSC/src/PCSC/reader.h

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Tue May 28 08:20:16 UTC 2013


Author: rousseau
Date: Tue May 28 08:20:15 2013
New Revision: 6638

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=6638
Log:
Use C99 flexible array member

The structures PIN_MODIFY_STRUCTURE and PIN_VERIFY_STRUCTURE now use a
C99 flexible array member when available for abData field.

uint8_t abData[];

Modified:
    trunk/PCSC/src/PCSC/reader.h

Modified: trunk/PCSC/src/PCSC/reader.h
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/PCSC/reader.h?rev=6638&op=diff
==============================================================================
--- trunk/PCSC/src/PCSC/reader.h (original)
+++ trunk/PCSC/src/PCSC/reader.h Tue May 28 08:20:15 2013
@@ -170,7 +170,13 @@
 	uint8_t bMsgIndex; /**< Message index (should be 00) */
 	uint8_t bTeoPrologue[3]; /**< T=1 block prologue field to use (fill with 00) */
 	uint32_t ulDataLength; /**< length of Data to be sent to the ICC */
-	uint8_t abData[1]; /**< Data to send to the ICC */
+	uint8_t abData
+#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)
+	[] /* valid C99 code */
+#else
+	[0] /* non-standard, but usually working code */
+#endif
+	; /**< Data to send to the ICC */
 } PIN_VERIFY_STRUCTURE;
 
 /** structure used with \ref FEATURE_MODIFY_PIN_DIRECT */
@@ -203,7 +209,13 @@
 	uint8_t bMsgIndex3; /**< index of 3d prompting message */
 	uint8_t bTeoPrologue[3]; /**< T=1 block prologue field to use (fill with 00) */
 	uint32_t ulDataLength; /**< length of Data to be sent to the ICC */
-	uint8_t abData[1]; /**< Data to send to the ICC */
+	uint8_t abData
+#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)
+	[] /* valid C99 code */
+#else
+	[0] /* non-standard, but usually working code */
+#endif
+	; /**< Data to send to the ICC */
 } PIN_MODIFY_STRUCTURE;
 
 /** structure used with \ref FEATURE_IFD_PIN_PROPERTIES */




More information about the Pcsclite-cvs-commit mailing list