X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=input_stats.cpp;h=f909113b9024a2642a7acbb5064b6bf34d9bdb92;hp=6bd1529450a3e3ce08af839faf3c36eda70cdbc6;hb=a0fe013448d188b324c00383cfd91695d9d3d076;hpb=26fe3ab755034ea3be8321ec0af548670f8c3bd8 diff --git a/input_stats.cpp b/input_stats.cpp index 6bd1529..f909113 100644 --- a/input_stats.cpp +++ b/input_stats.cpp @@ -39,7 +39,7 @@ void InputStatsThread::do_work() } fp = fdopen(fd, "w"); - if (fp == NULL) { + if (fp == nullptr) { log_perror("fdopen"); safe_close(fd); if (unlink(filename) == -1) { @@ -49,7 +49,7 @@ void InputStatsThread::do_work() goto sleep; } - now = time(NULL); + now = time(nullptr); for (size_t i = 0; i < inputs.size(); ++i) { InputStats stats = inputs[i]->get_stats(); fprintf(fp, "%s %llu %llu", stats.url.c_str(),