]> git.sesse.net Git - cubemap/blobdiff - udpinput.h
Fix an unneeded comparison with zero.
[cubemap] / udpinput.h
index caff008793842cdce2b601e10ea8c61041ae889e..4de9788768e71ed1a98bccd844eade0d5b5f05ab 100644 (file)
@@ -1,6 +1,7 @@
 #ifndef _UDPINPUT_H
 #define _UDPINPUT_H 1
 
+#include <mutex>
 #include <string>
 #include <vector>
 
@@ -34,7 +35,7 @@ private:
 
        // The URL and its parsed components.
        std::string url;
-       std::string host, port, path;
+       std::string user, host, port, path;
 
        // The HTTP header we're sending to clients.
        std::string http_header;
@@ -46,7 +47,7 @@ private:
        char packet_buf[65536];
 
        // Mutex protecting <stats>.
-       mutable pthread_mutex_t stats_mutex;
+       mutable std::mutex stats_mutex;
 
        // The current statistics for this connection. Protected by <stats_mutex>.
        InputStats stats;