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

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Tue Aug 26 09:17:39 UTC 2008


Author: rousseau
Date: Tue Aug 26 09:17:39 2008
New Revision: 3101

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=3101
Log:
move time_sub() outside of #ifdef DO_PROFILE

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=3101&op=diff
==============================================================================
--- trunk/PCSC/src/winscard_clnt.c (original)
+++ trunk/PCSC/src/winscard_clnt.c Tue Aug 26 09:17:39 2008
@@ -99,22 +99,6 @@
 	gettimeofday(&profile_time_start, NULL);
 } /* profile_start */
 
-/* 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 */
-
-
 static void profile_end(const char *f, LONG rv)
 {
 	struct timeval profile_time_end;
@@ -153,6 +137,22 @@
 #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