[Pcsclite-cvs-commit] CVS Drivers/ccid/src
CVS User rousseau
ludovic.rousseau@free.fr
Thu, 13 Jan 2005 02:35:16 -0700
Update of /cvsroot/pcsclite/Drivers/ccid/src
In directory haydn:/tmp/cvs-serv10823
Modified Files:
commands.c
Log Message:
CmdXfrBlockCHAR_T0(): move a variable declaration at the beginning of
the function since ISO C89 forbids mixed declarations and code
--- /cvsroot/pcsclite/Drivers/ccid/src/commands.c 2005/01/13 09:32:17 1.36
+++ /cvsroot/pcsclite/Drivers/ccid/src/commands.c 2005/01/13 09:35:16 1.37
@@ -18,7 +18,7 @@
*/
/*
- * $Id: commands.c,v 1.36 2005/01/13 09:32:17 rousseau Exp $
+ * $Id: commands.c,v 1.37 2005/01/13 09:35:16 rousseau Exp $
*/
#include <string.h>
@@ -723,6 +723,7 @@
unsigned char rcv_buf[])
{
int is_rcv;
+ unsigned char cmd[5];
unsigned char tmp_buf[512];
unsigned int exp_len, in_len;
unsigned char ins, *in_buf;
@@ -747,7 +748,6 @@
is_rcv = 0;
/* Command to send to the smart card (must be 5 bytes, from 7816 p.15) */
- unsigned char cmd[5];
memset(cmd, 0, sizeof(cmd));
if (snd_len == 4)
{