]> git.sesse.net Git - cubemap/blobdiff - input_stats.cpp
Use nullptr instead of NULL everywhere.
[cubemap] / input_stats.cpp
index 6bd1529450a3e3ce08af839faf3c36eda70cdbc6..f909113b9024a2642a7acbb5064b6bf34d9bdb92 100644 (file)
@@ -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(),