[Pcsclite-cvs-commit] r5343 - in /trunk/PCSC/src: eventhandler.c eventhandler.h hotplug_libhal.c hotplug_macosx.c ifdwrapper.c misc.h pcscdaemon.c winscard.c winscard_clnt.c winscard_msg.c
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Fri Oct 22 11:52:23 UTC 2010
Author: rousseau
Date: Fri Oct 22 11:52:22 2010
New Revision: 5343
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=5343
Log:
Remove spaces and tabs at end of line
Modified:
trunk/PCSC/src/eventhandler.c
trunk/PCSC/src/eventhandler.h
trunk/PCSC/src/hotplug_libhal.c
trunk/PCSC/src/hotplug_macosx.c
trunk/PCSC/src/ifdwrapper.c
trunk/PCSC/src/misc.h
trunk/PCSC/src/pcscdaemon.c
trunk/PCSC/src/winscard.c
trunk/PCSC/src/winscard_clnt.c
trunk/PCSC/src/winscard_msg.c
Modified: trunk/PCSC/src/eventhandler.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/eventhandler.c?rev=5343&op=diff
==============================================================================
--- trunk/PCSC/src/eventhandler.c (original)
+++ trunk/PCSC/src/eventhandler.c Fri Oct 22 11:52:22 2010
@@ -49,7 +49,7 @@
(void)pthread_mutex_lock(&ClientsWaitingForEvent_lock);
(void)list_append(&ClientsWaitingForEvent, &filedes);
-
+
(void)pthread_mutex_unlock(&ClientsWaitingForEvent_lock);
return SCARD_S_SUCCESS;
@@ -67,9 +67,9 @@
(void)pthread_mutex_lock(&ClientsWaitingForEvent_lock);
ret = list_delete(&ClientsWaitingForEvent, &filedes);
-
+
(void)pthread_mutex_unlock(&ClientsWaitingForEvent_lock);
-
+
if (ret < 0)
rv = SCARD_F_INTERNAL_ERROR;
@@ -82,7 +82,7 @@
LONG EHUnregisterClientForEvent(int32_t filedes)
{
LONG rv = EHTryToUnregisterClientForEvent(filedes);
-
+
if (rv < 0)
Log2(PCSC_LOG_ERROR, "Can't remove client: %d", filedes);
@@ -252,7 +252,7 @@
if (dwStatus & SCARD_PRESENT)
{
#ifdef DISABLE_AUTO_POWER_ON
- rContext->readerState->cardAtrLength = 0;
+ rContext->readerState->cardAtrLength = 0;
rContext->readerState->cardProtocol = SCARD_PROTOCOL_UNDEFINED;
readerState = SCARD_PRESENT;
Log1(PCSC_LOG_INFO, "Skip card power on");
@@ -359,7 +359,7 @@
dwCurrentState == SCARD_UNKNOWN)
{
#ifdef DISABLE_AUTO_POWER_ON
- rContext->readerState->cardAtrLength = 0;
+ rContext->readerState->cardAtrLength = 0;
rContext->readerState->cardProtocol = SCARD_PROTOCOL_UNDEFINED;
rContext->readerState->readerState = SCARD_PRESENT;
rContext->powerState = POWER_STATE_UNPOWERED;
Modified: trunk/PCSC/src/eventhandler.h
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/eventhandler.h?rev=5343&op=diff
==============================================================================
--- trunk/PCSC/src/eventhandler.h (original)
+++ trunk/PCSC/src/eventhandler.h Fri Oct 22 11:52:22 2010
@@ -44,7 +44,7 @@
LONG EHTryToUnregisterClientForEvent(int32_t filedes);
LONG EHRegisterClientForEvent(int32_t filedes);
- LONG EHUnregisterClientForEvent(int32_t filedes);
+ LONG EHUnregisterClientForEvent(int32_t filedes);
LONG EHSignalEventToClients(void);
LONG EHInitializeEventStructures(void);
LONG EHSpawnEventHandler(READER_CONTEXT *);
Modified: trunk/PCSC/src/hotplug_libhal.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/hotplug_libhal.c?rev=5343&op=diff
==============================================================================
--- trunk/PCSC/src/hotplug_libhal.c (original)
+++ trunk/PCSC/src/hotplug_libhal.c Fri Oct 22 11:52:22 2010
@@ -403,7 +403,7 @@
sSerialNumber = libhal_device_get_property_string(ctx, udi,
"usb.serial", NULL);
#endif
-
+
/* name from the Info.plist file */
strlcpy(fullname, driver->readerName, sizeof(fullname));
Modified: trunk/PCSC/src/hotplug_macosx.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/hotplug_macosx.c?rev=5343&op=diff
==============================================================================
--- trunk/PCSC/src/hotplug_macosx.c (original)
+++ trunk/PCSC/src/hotplug_macosx.c Fri Oct 22 11:52:22 2010
@@ -8,7 +8,7 @@
* Copyright (C) 2002
* David Corcoran <corcoran at linuxnet.com>
* Copyright (C) 2003
- * Antti Tapaninen
+ * Antti Tapaninen
*
* $Id$
*/
Modified: trunk/PCSC/src/ifdwrapper.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/ifdwrapper.c?rev=5343&op=diff
==============================================================================
--- trunk/PCSC/src/ifdwrapper.c (original)
+++ trunk/PCSC/src/ifdwrapper.c Fri Oct 22 11:52:22 2010
@@ -76,7 +76,7 @@
dwProtocol, ucFlags, ucPTS1, ucPTS2, ucPTS3);
#else
rv = IFDHSetProtocolParameters(rContext->slot, dwProtocol, ucFlags,
- ucPTS1, ucPTS2, ucPTS3);
+ ucPTS1, ucPTS2, ucPTS3);
#endif
return rv;
Modified: trunk/PCSC/src/misc.h
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/misc.h?rev=5343&op=diff
==============================================================================
--- trunk/PCSC/src/misc.h (original)
+++ trunk/PCSC/src/misc.h Fri Oct 22 11:52:22 2010
@@ -27,7 +27,7 @@
#if defined __GNUC__ && (! defined (__sun)) && (__GNUC__ >= 4 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3))
#define INTERNAL __attribute__ ((visibility("hidden")))
#define PCSC_API __attribute__ ((visibility("default")))
-#elif (! defined __GNUC__ ) && defined (__sun)
+#elif (! defined __GNUC__ ) && defined (__sun)
/* http://wikis.sun.com/display/SunStudio/Macros+for+Shared+Library+Symbol+Visibility */
#define INTERNAL __hidden
#define PCSC_API __global
Modified: trunk/PCSC/src/pcscdaemon.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/pcscdaemon.c?rev=5343&op=diff
==============================================================================
--- trunk/PCSC/src/pcscdaemon.c (original)
+++ trunk/PCSC/src/pcscdaemon.c Fri Oct 22 11:52:22 2010
@@ -269,7 +269,7 @@
break;
case 't':
- customMaxThreadCounter = optarg ? atoi(optarg) : 0;
+ customMaxThreadCounter = optarg ? atoi(optarg) : 0;
if (limited_rights && (customMaxThreadCounter < PCSC_MAX_CONTEXT_THREADS))
customMaxThreadCounter = PCSC_MAX_CONTEXT_THREADS;
Log2(PCSC_LOG_INFO, "setting customMaxThreadCounter to: %d",
@@ -277,7 +277,7 @@
break;
case 'r':
- customMaxReaderHandles = optarg ? atoi(optarg) : 0;
+ customMaxReaderHandles = optarg ? atoi(optarg) : 0;
if (limited_rights && (customMaxReaderHandles < PCSC_MAX_READER_HANDLES))
customMaxReaderHandles = PCSC_MAX_READER_HANDLES;
Log2(PCSC_LOG_INFO, "setting customMaxReaderHandles to: %d",
@@ -285,7 +285,7 @@
break;
case 's':
- customMaxThreadCardHandles = optarg ? atoi(optarg) : 0;
+ customMaxThreadCardHandles = optarg ? atoi(optarg) : 0;
if (limited_rights && (customMaxThreadCardHandles < PCSC_MAX_CONTEXT_CARD_HANDLES))
customMaxThreadCardHandles = PCSC_MAX_CONTEXT_CARD_HANDLES;
Log2(PCSC_LOG_INFO, "setting customMaxThreadCardHandles to: %d",
Modified: trunk/PCSC/src/winscard.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/winscard.c?rev=5343&op=diff
==============================================================================
--- trunk/PCSC/src/winscard.c (original)
+++ trunk/PCSC/src/winscard.c Fri Oct 22 11:52:22 2010
@@ -863,7 +863,7 @@
#ifdef DISABLE_AUTO_POWER_ON
if (SCARD_UNPOWER_CARD == dwDisposition)
{
- rContext->readerState->cardAtrLength = 0;
+ rContext->readerState->cardAtrLength = 0;
rContext->readerState->readerState = SCARD_PRESENT;
Log1(PCSC_LOG_INFO, "Skip card power on");
}
@@ -1354,7 +1354,7 @@
}
}
- else
+ else
rv = SCARD_E_UNSUPPORTED_FEATURE;
break;
case IFD_ERROR_INSUFFICIENT_BUFFER:
Modified: trunk/PCSC/src/winscard_clnt.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/winscard_clnt.c?rev=5343&op=diff
==============================================================================
--- trunk/PCSC/src/winscard_clnt.c (original)
+++ trunk/PCSC/src/winscard_clnt.c Fri Oct 22 11:52:22 2010
@@ -562,7 +562,7 @@
Log1(PCSC_LOG_INFO, "Disable shared blocking");
sharing_shall_block = FALSE;
}
-
+
isExecuted = 1;
}
@@ -998,7 +998,7 @@
/* Retry loop for blocking behaviour */
retry:
-
+
scReconnectStruct.hCard = hCard;
scReconnectStruct.dwShareMode = dwShareMode;
scReconnectStruct.dwPreferredProtocols = dwPreferredProtocols;
@@ -1034,7 +1034,7 @@
(void)SYS_USleep(PCSCLITE_LOCK_POLL_RATE);
goto retry;
}
-
+
*pdwActiveProtocol = scReconnectStruct.dwActiveProtocol;
end:
@@ -1577,7 +1577,7 @@
(void)SYS_USleep(PCSCLITE_LOCK_POLL_RATE);
goto retry;
}
-
+
if (rv != SCARD_S_SUCCESS && rv != SCARD_E_INSUFFICIENT_BUFFER)
{
/*
@@ -1851,7 +1851,7 @@
const char *readerName;
int i;
- /* Looks for correct readernames */
+ /* Looks for correct readernames */
readerName = currReader->szReader;
for (i = 0; i < PCSCLITE_MAX_READERS_CONTEXTS; i++)
{
@@ -2771,7 +2771,7 @@
/* Retry loop for blocking behaviour */
retry:
-
+
scTransmitStruct.hCard = hCard;
scTransmitStruct.cbSendLength = cbSendLength;
scTransmitStruct.pcbRecvLength = *pcbRecvLength;
Modified: trunk/PCSC/src/winscard_msg.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/winscard_msg.c?rev=5343&op=diff
==============================================================================
--- trunk/PCSC/src/winscard_msg.c (original)
+++ trunk/PCSC/src/winscard_msg.c Fri Oct 22 11:52:22 2010
@@ -181,7 +181,7 @@
} else
{
/* we ignore the signals and socket full situations, all
- * other errors are fatal */
+ * other errors are fatal */
if (errno != EINTR && errno != EAGAIN)
{
retval = -1;
More information about the Pcsclite-cvs-commit
mailing list