From: Ian Jackson Date: Fri, 9 Dec 2016 22:02:20 +0000 (+0000) Subject: regress: fuzzraw: make gettimeofday not give invalid tv_usec values X-Git-Tag: adns-1.6.0~11 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=adns.git;a=commitdiff_plain;h=bc17efb298c18d35ed620ce0c38cf92ff216940a regress: fuzzraw: make gettimeofday not give invalid tv_usec values I don't think adns should have to cope with tv_usec out of the range 0..999999. Signed-off-by: Ian Jackson --- diff --git a/regress/hfuzzraw.c.m4 b/regress/hfuzzraw.c.m4 index b2e82fd..fa54c53 100644 --- a/regress/hfuzzraw.c.m4 +++ b/regress/hfuzzraw.c.m4 @@ -141,6 +141,7 @@ void T_gettimeofday_hook(void) { struct timeval delta, sum; P_READ(delta); timeradd(&delta, ¤ttime, &sum); + sum.tv_usec %= 1000000; currenttime= sum; }