[Pcsclite-cvs-commit] PCSC/src readerfactory.c,1.16,1.17
sauveron-guest@quantz.debian.org
sauveron-guest@quantz.debian.org
Wed, 10 Sep 2003 11:47:16 +0200
Update of /cvsroot/pcsclite/PCSC/src
In directory quantz:/tmp/cvs-serv8509/src
Modified Files:
readerfactory.c
Log Message:
Cleanup about variables already initialized and indent of some comments
Index: readerfactory.c
===================================================================
RCS file: /cvsroot/pcsclite/PCSC/src/readerfactory.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- readerfactory.c 7 Sep 2003 18:06:58 -0000 1.16
+++ readerfactory.c 10 Sep 2003 09:47:14 -0000 1.17
@@ -42,7 +42,7 @@
{
int i; /* Counter */
- LONG rv; /* Return tester */
+ LONG rv; /* Return tester */
/*
* Zero out everything
@@ -155,7 +155,7 @@
(sContexts[dwContext])->dwStatus = 0;
(sContexts[dwContext])->dwBlockStatus = 0;
(sContexts[dwContext])->dwContexts = 0;
- (sContexts[dwContext])->pthThread = 0;
+ (sContexts[dwContext])->pthThread = 0;
(sContexts[dwContext])->dwLockId = 0;
(sContexts[dwContext])->vHandle = 0;
(sContexts[dwContext])->dwPublicID = 0;
@@ -183,7 +183,7 @@
(sContexts[parentNode])->mMutex;
}
- if ((sContexts[dwContext])->dwFeeds == 0)
+ if ((sContexts[dwContext])->dwFeeds == NULL)
{
(sContexts[dwContext])->dwFeeds =
(DWORD *)malloc(sizeof(DWORD));
@@ -196,7 +196,7 @@
*(sContexts[dwContext])->dwFeeds = 1;
}
- if ((sContexts[dwContext])->mMutex == 0)
+ if ((sContexts[dwContext])->mMutex == NULL)
{
(sContexts[dwContext])->mMutex =
(PCSCLITE_MUTEX_T) malloc(sizeof(PCSCLITE_MUTEX));
@@ -478,8 +478,8 @@
LPSTR libraryName, DWORD dwPort, DWORD dwSlot)
{
- LONG rv=-1; /* rv is the reader number of the parent
- * of the clone */
+ LONG rv; /* rv is the reader number of the parent
+ * of the clone */
LONG ret;
DWORD valueLength;
UCHAR tagValue;
@@ -503,8 +503,6 @@
{
usedDigits[i] = 0;
}
-
- currentDigit = -1;
if (dwSlot == 0)
{