[Pcsclite-cvs-commit] r3180 - /trunk/PCSC/src/winscard_clnt.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Mon Oct 27 13:34:48 UTC 2008


Author: rousseau
Date: Mon Oct 27 13:34:48 2008
New Revision: 3180

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=3180
Log:
move definition of time_sub() before its first use

Modified:
    trunk/PCSC/src/winscard_clnt.c

Modified: trunk/PCSC/src/winscard_clnt.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/winscard_clnt.c?rev=3180&op=diff
==============================================================================
--- trunk/PCSC/src/winscard_clnt.c (original)
+++ trunk/PCSC/src/winscard_clnt.c Mon Oct 27 13:34:48 2008
@@ -50,6 +50,22 @@
 #define FALSE 0
 #endif
 
+/* r = a - b */
+static long int time_sub(struct timeval *a, struct timeval *b)
+{
+	struct timeval r;
+	r.tv_sec = a -> tv_sec - b -> tv_sec;
+	r.tv_usec = a -> tv_usec - b -> tv_usec;
+	if (r.tv_usec < 0)
+	{
+		r.tv_sec--;
+		r.tv_usec += 1000000;
+	}
+
+	return r.tv_sec * 1000000 + r.tv_usec;
+} /* time_sub */
+
+
 #undef DO_PROFILE
 #ifdef DO_PROFILE
 
@@ -138,22 +154,6 @@
 #define PROFILE_START
 #define PROFILE_END(rv)
 #endif
-
-/* r = a - b */
-static long int time_sub(struct timeval *a, struct timeval *b)
-{
-	struct timeval r;
-	r.tv_sec = a -> tv_sec - b -> tv_sec;
-	r.tv_usec = a -> tv_usec - b -> tv_usec;
-	if (r.tv_usec < 0)
-	{
-		r.tv_sec--;
-		r.tv_usec += 1000000;
-	}
-
-	return r.tv_sec * 1000000 + r.tv_usec;
-} /* time_sub */
-
 
 /**
  * Represents an Application Context Channel.




More information about the Pcsclite-cvs-commit mailing list