projects
/
cubemap
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0148c67
)
Add a missing const.
author
Steinar H. Gunderson
<sgunderson@bigfoot.com>
Fri, 7 Aug 2015 22:16:47 +0000
(
00:16
+0200)
committer
Steinar H. Gunderson
<sgunderson@bigfoot.com>
Fri, 7 Aug 2015 22:16:47 +0000
(
00:16
+0200)
server.cpp
patch
|
blob
|
history
diff --git
a/server.cpp
b/server.cpp
index
e99dbea
..
9ff4758
100644
(file)
--- a/
server.cpp
+++ b/
server.cpp
@@
-140,7
+140,7
@@
void Server::do_work()
}
timeout_time.tv_sec -= REQUEST_READ_TIMEOUT_SEC;
while (!clients_ordered_by_connect_time.empty()) {
}
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)) {
// See if we have reached the end of clients to process.
if (is_earlier(timeout_time, connect_time_and_fd.first)) {