[Pcsclite-cvs-commit] PCSC/doc/example pcsc_demo.c,1.12,1.13
rousseau@haydn.debian.org
rousseau@haydn.debian.org
Update of /cvsroot/pcsclite/PCSC/doc/example
In directory haydn:/tmp/cvs-serv11533/doc/example
Modified Files:
pcsc_demo.c
Log Message:
signedness issue detected by gcc -pedantic
Index: pcsc_demo.c
===================================================================
RCS file: /cvsroot/pcsclite/PCSC/doc/example/pcsc_demo.c,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- pcsc_demo.c 5 Apr 2004 14:44:59 -0000 1.12
+++ pcsc_demo.c 25 May 2004 12:59:26 -0000 1.13
@@ -59,7 +59,7 @@
SCARDHANDLE hCard;
DWORD dwActiveProtocol, dwReaderLen, dwState, dwProt, dwAtrLen;
BYTE pbAtr[MAX_ATR_SIZE] = "";
- BYTE pbReader[MAX_READERNAME] = "";
+ char pbReader[MAX_READERNAME] = "";
int reader_nb;
int i;
@@ -83,6 +83,7 @@
if (rv != SCARD_S_SUCCESS)
{
printf("SCardListReader: %lX\n", rv);
+ return EXIT_FAILURE;
}
mszReaders = malloc(sizeof(char)*dwReaders);
@@ -201,6 +202,6 @@
free(mszReaders);
free(readers);
- return 0;
+ return EXIT_SUCCESS;
} /* main */