aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2015-01-12 23:50:08 -0500
committerJustin M. Keyes <justinkz@gmail.com>2015-01-12 23:50:08 -0500
commit9c090e9329679d5659d61f1c3f4fc5452417a027 (patch)
treee9014351eba5f9af137b41d71cd9ac14c3c69e71 /src
parent9d0be9604eac8ddd9f856baa0f07625754c4967b (diff)
parent470b87e377686121e2387e20343a7ba15b2a974f (diff)
downloadrneovim-9c090e9329679d5659d61f1c3f4fc5452417a027.tar.gz
rneovim-9c090e9329679d5659d61f1c3f4fc5452417a027.tar.bz2
rneovim-9c090e9329679d5659d61f1c3f4fc5452417a027.zip
Merge pull request #1792 from fwalch/clint_remove-rand_r
Linting: Recommend os_* instead of POSIX functions.
Diffstat (limited to 'src')
-rw-r--r--src/nvim/os/time.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/os/time.c b/src/nvim/os/time.c
index 810ddea82b..b69be88fc7 100644
--- a/src/nvim/os/time.c
+++ b/src/nvim/os/time.c
@@ -80,11 +80,11 @@ struct tm *os_localtime_r(const time_t *restrict clock,
{
#ifdef UNIX
// POSIX provides localtime_r() as a thread-safe version of localtime().
- return localtime_r(clock, result);
+ return localtime_r(clock, result); // NOLINT(runtime/threadsafe_fn)
#else
// Windows version of localtime() is thread-safe.
// See http://msdn.microsoft.com/en-us/library/bf12f0hc%28VS.80%29.aspx
- struct tm *local_time = localtime(clock); // NOLINT
+ struct tm *local_time = localtime(clock); // NOLINT(runtime/threadsafe_fn)
if (!local_time) {
return NULL;
}