From 6bc68fabb81d019e017d7f51fdd0b275b3f78609 Mon Sep 17 00:00:00 2001 From: Björn Jacke Date: Thu, 16 Sep 2010 21:36:00 +0200 Subject: s3: remove TvalDiff macro, we can use the shared usec_time_diff function --- source3/include/smb_macros.h | 9 --------- 1 file changed, 9 deletions(-) (limited to 'source3/include') diff --git a/source3/include/smb_macros.h b/source3/include/smb_macros.h index 757c8a2c1e..9f4b345b84 100644 --- a/source3/include/smb_macros.h +++ b/source3/include/smb_macros.h @@ -144,15 +144,6 @@ #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 ****************************************************************************/ -- cgit