[Pcsclite-cvs-commit] r445 - /trunk/muscleTool/muscleTool.c
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Fri Nov 13 09:39:04 UTC 2009
Author: rousseau
Date: Fri Nov 13 09:39:03 2009
New Revision: 445
URL: http://svn.debian.org/wsvn/muscleapps/?sc=1&rev=445
Log:
declare local functions as static
Modified:
trunk/muscleTool/muscleTool.c
Modified: trunk/muscleTool/muscleTool.c
URL: http://svn.debian.org/wsvn/muscleapps/trunk/muscleTool/muscleTool.c?rev=445&op=diff
==============================================================================
--- trunk/muscleTool/muscleTool.c (original)
+++ trunk/muscleTool/muscleTool.c Fri Nov 13 09:39:03 2009
@@ -95,7 +95,7 @@
return temp;
}
-void *printStatStars(void *arg)
+static void *printStatStars(void *arg)
{
while (1)
{
@@ -117,7 +117,8 @@
}
-MSCULong32 tokenCallback(MSCLPTokenInfo tokInfo, MSCULong32 tokSize,
+#if 0
+static MSCULong32 tokenCallback(MSCLPTokenInfo tokInfo, MSCULong32 tokSize,
MSCPVoid32 data)
{
doRelease();
@@ -126,11 +127,12 @@
return 0;
}
+#endif
static MSCUChar8 muscleDefaultKey[8] =
{ 'M', 'u', 's', 'c', 'l', 'e', '0', '0' };
-int textToBytes(MSCString inStr, MSCPUChar8 Buffer, MSCPULong32 Length)
+static int textToBytes(MSCString inStr, MSCPUChar8 Buffer, MSCPULong32 Length)
{
int i;
int j;
@@ -173,17 +175,7 @@
}
-void binToHex(MSCUChar8 * data, MSCULong32 data_len, MSCUChar8 * out)
-{
- MSCULong32 i;
-
- for (i = 0; i < data_len; i++)
- sprintf((char *)&out[i * 2], "%.2X", data[i]);
-
- out[data_len * 2] = 0;
-}
-
-MSCULong32 hexToBin(MSCUChar8 * data, MSCUChar8 * out)
+static MSCULong32 hexToBin(MSCUChar8 * data, MSCUChar8 * out)
{
MSCULong32 i;
MSCULong32 count = 0;
@@ -226,7 +218,7 @@
/**
* Pads data at the end with 0x00.
*/
-void padData(MSCUChar8 * data, MSCULong32 inSize, MSCULong32 outSize)
+static void padData(MSCUChar8 * data, MSCULong32 inSize, MSCULong32 outSize)
{
MSCULong32 i;
@@ -241,7 +233,7 @@
* So the RSA modulus is smaller and the exponentiation exceeds modulus.
* \return 1 for success, 0 if failure,
*/
-MSC_RV padRSAData(MSCUChar8 * data, MSCULong32 inSize, MSCULong32 outSize)
+static MSC_RV padRSAData(MSCUChar8 * data, MSCULong32 inSize, MSCULong32 outSize)
{
MSCULong32 i;
MSC_RV rv = 0;
@@ -960,7 +952,7 @@
}
#endif
-void doLoggedID(MSCUShort16 aut)
+static void doLoggedID(MSCUShort16 aut)
{
if (aut == 0)
{
@@ -2386,7 +2378,7 @@
return;
}
-void myCallback(void *randValue, int pctDone)
+static void myCallback(void *randValue, int pctDone)
{
int intPct;
double dbPct;
More information about the Pcsclite-cvs-commit
mailing list