summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Jacke <bj@sernet.de>2010-09-16 21:36:00 +0200
committerBjörn Jacke <bj@sernet.de>2010-09-16 21:38:20 +0200
commit6bc68fabb81d019e017d7f51fdd0b275b3f78609 (patch)
treecc8978e94426b472be7154efd6a59608f1887484
parent2b254c814b139f93997f61525d77b934596c53a3 (diff)
downloadsamba-6bc68fabb81d019e017d7f51fdd0b275b3f78609.tar.gz
samba-6bc68fabb81d019e017d7f51fdd0b275b3f78609.tar.bz2
samba-6bc68fabb81d019e017d7f51fdd0b275b3f78609.zip
s3: remove TvalDiff macro, we can use the shared usec_time_diff function
-rw-r--r--source3/include/smb_macros.h9
1 files changed, 0 insertions, 9 deletions
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
****************************************************************************/