]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
timing_load_creds: Fix typos in the timersub macro
authorTomas Mraz <tomas@openssl.org>
Mon, 12 Dec 2022 10:49:21 +0000 (11:49 +0100)
committerTomas Mraz <tomas@openssl.org>
Wed, 14 Dec 2022 11:53:06 +0000 (12:53 +0100)
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19865)

(cherry picked from commit f1b104953af8e3a82f7c5ee33f0403fc067c8516)

test/timing_load_creds.c

index 9be068986fe86e398627338e5a110ad8d7d554c4..3931b274c975cb829fe04b26aedc5e96476a1e1a 100644 (file)
      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