diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-07-27 14:28:37 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-07-27 14:28:37 +0200 |
commit | b55a23564e466d311b53922b37b0750bf5ee3f17 (patch) | |
tree | d77c0f3ea92c2421000732ef550d563910a0d066 /tests/server/util.c | |
parent | 425fa864ce4cc2326996c8fd280ddf61e485ba23 (diff) | |
download | curl-b55a23564e466d311b53922b37b0750bf5ee3f17.tar.gz |
checksrc: ban gmtime/localtimebagder/ban-bad-time-funcs
They're not thread-safe so they should not be used in libcurl code.
Explictly enabled when deemed necessary and in examples and tests
Diffstat (limited to 'tests/server/util.c')
-rw-r--r-- | tests/server/util.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/server/util.c b/tests/server/util.c index 8e76f0c9b..dccce596b 100644 --- a/tests/server/util.c +++ b/tests/server/util.c @@ -119,6 +119,7 @@ void logmsg(const char *msg, ...) known_offset = 1; } sec = epoch_offset + tv.tv_sec; + /* !checksrc! disable BANNEDFUNC 1 */ now = localtime(&sec); /* not thread safe but we don't care */ msnprintf(timebuf, sizeof(timebuf), "%02d:%02d:%02d.%06ld", |