summaryrefslogtreecommitdiff
path: root/toxcore/util.c
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2018-01-28 21:30:39 +0000
committeriphydf <iphydf@users.noreply.github.com>2018-01-30 23:35:50 +0000
commit92ffad1a72bc8c422426d52ac408bd71242dd047 (patch)
treef592f353068dd2043525dd2cc04d6124a4ed4bc4 /toxcore/util.c
parent623e9ac331df7323660e21c8a2226523a5ee713b (diff)
Use nullptr as NULL pointer constant instead of NULL or 0.
This changes only code, no string literals or comments.
Diffstat (limited to 'toxcore/util.c')
-rw-r--r--toxcore/util.c2
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;
48void unix_time_update(void) 48void 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;