]> git.sesse.net Git - cubemap/blobdiff - server.cpp
Add a missing const.
[cubemap] / server.cpp
index e99dbeaa89b311788a9c0fc4eb132a667db3f5b1..9ff4758493abf06d4268fc3a1fd5e54087366408 100644 (file)
@@ -140,7 +140,7 @@ void Server::do_work()
                }
                timeout_time.tv_sec -= REQUEST_READ_TIMEOUT_SEC;
                while (!clients_ordered_by_connect_time.empty()) {
-                       pair<timespec, int> &connect_time_and_fd = clients_ordered_by_connect_time.front();
+                       const pair<timespec, int> &connect_time_and_fd = clients_ordered_by_connect_time.front();
 
                        // See if we have reached the end of clients to process.
                        if (is_earlier(timeout_time, connect_time_and_fd.first)) {