s3: remove TvalDiff macro, we can use the shared usec_time_diff function
authorBjörn Jacke <bj@sernet.de>
Thu, 16 Sep 2010 19:36:00 +0000 (21:36 +0200)
committerBjörn Jacke <bj@sernet.de>
Thu, 16 Sep 2010 19:38:20 +0000 (21:38 +0200)
source3/include/smb_macros.h

index 757c8a2c1e70a12e5494eb2e351ee3626aacb66f..9f4b345b843bc3b911b126e72f3969bb63437709 100644 (file)
 #define ENCRYPTION_REQUIRED(conn) ((conn) ? ((conn)->encrypt_level == Required) : false)
 #define IS_CONN_ENCRYPTED(conn) ((conn) ? (conn)->encrypted_tid : false)
 
-/*******************************************************************
-find the difference in milliseconds between two struct timeval
-values
-********************************************************************/
-
-#define TvalDiff(tvalold,tvalnew) \
-  (((tvalnew)->tv_sec - (tvalold)->tv_sec)*1000 +  \
-        ((int)(tvalnew)->tv_usec - (int)(tvalold)->tv_usec)/1000)
-
 /****************************************************************************
 true if two IPv4 addresses are equal
 ****************************************************************************/