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 remove bug we added.



details:   https://anonhg.NetBSD.org/src/rev/cabad65ba749
branches:  trunk
changeset: 786048:cabad65ba749
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Apr 12 17:50:27 2013 +0000

description:
remove bug we added.

diffstat:

 external/bsd/libevent/dist/test/regress.c |  8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diffs (36 lines):

diff -r 74bca9c89a8b -r cabad65ba749 external/bsd/libevent/dist/test/regress.c
--- a/external/bsd/libevent/dist/test/regress.c Fri Apr 12 17:30:50 2013 +0000
+++ b/external/bsd/libevent/dist/test/regress.c Fri Apr 12 17:50:27 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: regress.c,v 1.6 2013/04/11 20:14:44 christos Exp $     */
+/*     $NetBSD: regress.c,v 1.7 2013/04/12 17:50:27 christos Exp $     */
 /*
  * Copyright (c) 2003-2007 Niels Provos <provos%citi.umich.edu@localhost>
  * Copyright (c) 2007-2012 Niels Provos and Nick Mathewson
@@ -33,7 +33,7 @@
 
 #include "event2/event-config.h"
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: regress.c,v 1.6 2013/04/11 20:14:44 christos Exp $");
+__RCSID("$NetBSD: regress.c,v 1.7 2013/04/12 17:50:27 christos Exp $");
 
 #include <sys/types.h>
 #include <sys/stat.h>
@@ -89,8 +89,6 @@
 static struct timeval tcalled;
 
 
-static int interval;
-
 #define TEST1  "this is a test"
 #define SECONDS        1
 
@@ -247,7 +245,7 @@
        else
                evutil_timersub(&tset, &tcalled, &tv);
 
-       diff = tv.tv_sec*1000 + tv.tv_usec/1000 - interval;
+       diff = tv.tv_sec*1000 + tv.tv_usec/1000 - SECONDS * 1000;
        if (diff < 0)
                diff = -diff;
 



Home | Main Index | Thread Index | Old Index