]> git.sesse.net Git - cubemap/commitdiff
Add a missing const.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 7 Aug 2015 22:16:47 +0000 (00:16 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Fri, 7 Aug 2015 22:16:47 +0000 (00:16 +0200)
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)) {