From: Tomas Mraz Date: Mon, 12 Dec 2022 10:49:21 +0000 (+0100) Subject: timing_load_creds: Fix typos in the timersub macro X-Git-Tag: openssl-3.2.0-alpha1~1584 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1cf2557063b142db3684b780c301f8ed609f1e84;p=thirdparty%2Fopenssl.git timing_load_creds: Fix typos in the timersub macro Reviewed-by: Paul Dale Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/19865) (cherry picked from commit f1b104953af8e3a82f7c5ee33f0403fc067c8516) --- diff --git a/test/timing_load_creds.c b/test/timing_load_creds.c index 9be068986fe..3931b274c97 100644 --- a/test/timing_load_creds.c +++ b/test/timing_load_creds.c @@ -27,10 +27,10 @@ do { \ (res)->tv_sec = (a)->tv_sec - (b)->tv_sec; \ if ((a)->tv_usec < (b)->tv_usec) { \ - (res)->tv_usec = (a)->tv_usec + 1000000 - (b)->tv_usec); \ + (res)->tv_usec = (a)->tv_usec + 1000000 - (b)->tv_usec; \ --(res)->tv_sec; \ } else { \ - (res)->tv_usec = (a)->tv_usec - (b)->tv_usec); \ + (res)->tv_usec = (a)->tv_usec - (b)->tv_usec; \ } \ } while(0) # endif