aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlorian Walch <florian@fwalch.com>2015-01-10 22:25:37 +0100
committerFlorian Walch <florian@fwalch.com>2015-01-11 17:29:17 +0100
commit470b87e377686121e2387e20343a7ba15b2a974f (patch)
treecf2e44e76a6d91aef2da9d89c19deabd03a44d96 /src
parenta684cc175a6c1ca2cfc3bff2d68383d32008cb3b (diff)
downloadrneovim-470b87e377686121e2387e20343a7ba15b2a974f.tar.gz
rneovim-470b87e377686121e2387e20343a7ba15b2a974f.tar.bz2
rneovim-470b87e377686121e2387e20343a7ba15b2a974f.zip
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;
}