Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/libevent/dist/test time_t is larger than int, s...
details: https://anonhg.NetBSD.org/src/rev/980725167798
branches: trunk
changeset: 327118:980725167798
user: joerg <joerg%NetBSD.org@localhost>
date: Thu Feb 27 18:11:04 2014 +0000
description:
time_t is larger than int, so don't use abs.
diffstat:
external/bsd/libevent/dist/test/regress.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r c90ddec8df87 -r 980725167798 external/bsd/libevent/dist/test/regress.h
--- a/external/bsd/libevent/dist/test/regress.h Thu Feb 27 18:10:01 2014 +0000
+++ b/external/bsd/libevent/dist/test/regress.h Thu Feb 27 18:11:04 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: regress.h,v 1.2 2013/04/11 16:56:42 christos Exp $ */
+/* $NetBSD: regress.h,v 1.3 2014/02/27 18:11:04 joerg Exp $ */
/*
* Copyright (c) 2000-2007 Niels Provos <provos%citi.umich.edu@localhost>
* Copyright (c) 2007-2012 Niels Provos and Nick Mathewson
@@ -112,7 +112,7 @@
} while (/*CONSTCOND*/0)
#define test_timeval_diff_leq(tv1, tv2, diff, tolerance) \
- tt_int_op(abs(timeval_msec_diff((tv1), (tv2)) - diff), <=, tolerance)
+ tt_int_op(imaxabs(timeval_msec_diff((tv1), (tv2)) - diff), <=, tolerance)
#define test_timeval_diff_eq(tv1, tv2, diff) \
test_timeval_diff_leq((tv1), (tv2), (diff), 50)
Home |
Main Index |
Thread Index |
Old Index