summaryrefslogtreecommitdiff
path: root/source4/torture/gentest.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-04-24 14:20:44 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:04:16 -0500
commita30340affe789cd0c001e34c8e523fbba0742cfc (patch)
treef294f3a10c765cb694821f77183e392a203f66dc /source4/torture/gentest.c
parente2e3a8e007ac2a9533f4205622a6e17d57845fcc (diff)
downloadsamba-a30340affe789cd0c001e34c8e523fbba0742cfc.tar.gz
r15201: Use abs() rather then ABS()
(This used to be commit 1f3833d041fddaf79cd19d4f236780a02e97f095)
Diffstat (limited to 'source4/torture/gentest.c')
-rw-r--r--source4/torture/gentest.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/torture/gentest.c b/source4/torture/gentest.c
index ae3278fa9f8..13dbae47557 100644
--- a/source4/torture/gentest.c
+++ b/source4/torture/gentest.c
@@ -206,7 +206,7 @@ static BOOL connect_servers(void)
static uint_t time_skew(void)
{
uint_t ret;
- ret = ABS(servers[0].cli[0]->transport->negotiate.server_time -
+ ret = abs(servers[0].cli[0]->transport->negotiate.server_time -
servers[1].cli[0]->transport->negotiate.server_time);
return ret + 300;
}
@@ -1036,7 +1036,7 @@ again:
} while(0)
#define CHECK_TIMES_EQUAL(field) do { \
- if (ABS(parm[0].field - parm[1].field) > time_skew() && \
+ if (abs(parm[0].field - parm[1].field) > time_skew() && \
!ignore_pattern(#field)) { \
printf("Mismatch in %s - 0x%x 0x%x\n", #field, \
(int)parm[0].field, (int)parm[1].field); \
@@ -1045,7 +1045,7 @@ again:
} while(0)
#define CHECK_NTTIMES_EQUAL(field) do { \
- if (ABS(nt_time_to_unix(parm[0].field) - \
+ if (abs(nt_time_to_unix(parm[0].field) - \
nt_time_to_unix(parm[1].field)) > time_skew() && \
!ignore_pattern(#field)) { \
printf("Mismatch in %s - 0x%x 0x%x\n", #field, \