diff options
author | vanhauser-thc <vh@thc.org> | 2024-05-31 18:32:31 +0200 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2024-05-31 18:32:31 +0200 |
commit | 9419e39fdfcf225cee287683ef9d1549e954c4e9 (patch) | |
tree | f1f3cb7c111b8ce956b2c3e70903f128c168d05f /src/afl-common.c | |
parent | a3125c38f496979be314c93f10adfad9dd4d363e (diff) | |
download | afl++-9419e39fdfcf225cee287683ef9d1549e954c4e9.tar.gz |
nits
Diffstat (limited to 'src/afl-common.c')
-rw-r--r-- | src/afl-common.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/afl-common.c b/src/afl-common.c index 9a27824d..8af49e19 100644 --- a/src/afl-common.c +++ b/src/afl-common.c @@ -999,7 +999,7 @@ inline u64 get_cur_time(void) { struct timespec ts; int rc = clock_gettime(CLOCK_MONOTONIC_COARSE, &ts); - if (rc == -1) { + if (unlikely(rc == -1)) { PFATAL("Failed to obtain timestamp (errno = %i: %s)\n", errno, strerror(errno)); @@ -1012,11 +1012,11 @@ inline u64 get_cur_time(void) { /* Get unix time in microseconds */ -u64 get_cur_time_us(void) { +inline u64 get_cur_time_us(void) { struct timespec ts; int rc = clock_gettime(CLOCK_MONOTONIC_COARSE, &ts); - if (rc == -1) { + if (unlikely(rc == -1)) { PFATAL("Failed to obtain timestamp (errno = %i: %s)\n", errno, strerror(errno)); |