]> git.sesse.net Git - cubemap/blobdiff - accesslog.h
Use in-class initialization for making it harder to forget to set a default.
[cubemap] / accesslog.h
index 66be5a861543244824664a9778a70494bb0e84d9..9eae365511c914c4da780fa51d89dc74fb2e02d2 100644 (file)
@@ -5,8 +5,8 @@
 // Server instances, we try not to let write() block too much, and rather do
 // all the I/O in a separate I/O thread.
 
+#include <pthread.h>
 #include <stdio.h>
-
 #include <string>
 #include <vector>
 
@@ -29,7 +29,7 @@ public:
 private:
        virtual void do_work();
 
-       // The file we are logging to. If NULL, do not log.
+       // The file we are logging to. If nullptr, do not log.
        FILE *logfp;
        std::string filename;