diff options
Diffstat (limited to 'toxcore/util.c')
-rw-r--r-- | toxcore/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/util.c b/toxcore/util.c index 85584f09..ff612b1a 100644 --- a/toxcore/util.c +++ b/toxcore/util.c | |||
@@ -48,7 +48,7 @@ static uint64_t unix_base_time_value; | |||
48 | void unix_time_update(void) | 48 | void unix_time_update(void) |
49 | { | 49 | { |
50 | if (unix_base_time_value == 0) { | 50 | if (unix_base_time_value == 0) { |
51 | unix_base_time_value = ((uint64_t)time(NULL) - (current_time_monotonic() / 1000ULL)); | 51 | unix_base_time_value = ((uint64_t)time(nullptr) - (current_time_monotonic() / 1000ULL)); |
52 | } | 52 | } |
53 | 53 | ||
54 | unix_time_value = (current_time_monotonic() / 1000ULL) + unix_base_time_value; | 54 | unix_time_value = (current_time_monotonic() / 1000ULL) + unix_base_time_value; |