s3: remove TvalDiff macro, we can use the shared usec_time_diff function
[metze/samba/wip.git] / 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
 ****************************************************************************/