aboutsummaryrefslogtreecommitdiffstats
path: root/src/event/MultiSocketMonitor.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-08-10 11:29:05 +0200
committerMax Kellermann <max@duempel.org>2013-08-10 11:52:31 +0200
commitf3f4b332aefdc624d97dcc058a6cad1c7fc7c2ec (patch)
treec68adcb7050bffe87d9189d420baf68e580471aa /src/event/MultiSocketMonitor.cxx
parent84ac79bb08696230157912a1d927d35004b12e8c (diff)
downloadmpd-f3f4b332aefdc624d97dcc058a6cad1c7fc7c2ec.tar.gz
mpd-f3f4b332aefdc624d97dcc058a6cad1c7fc7c2ec.tar.xz
mpd-f3f4b332aefdc624d97dcc058a6cad1c7fc7c2ec.zip
event/MultiSocketMonitor: use uint64_t instead of gint64
Unsigned and portable.
Diffstat (limited to 'src/event/MultiSocketMonitor.cxx')
-rw-r--r--src/event/MultiSocketMonitor.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/event/MultiSocketMonitor.cxx b/src/event/MultiSocketMonitor.cxx
index 3fcc4375c..6ea0cb030 100644
--- a/src/event/MultiSocketMonitor.cxx
+++ b/src/event/MultiSocketMonitor.cxx
@@ -43,7 +43,7 @@ MultiSocketMonitor::MultiSocketMonitor(EventLoop &_loop)
:loop(_loop),
source((Source *)g_source_new(&multi_socket_monitor_source_funcs,
sizeof(*source))),
- absolute_timeout_us(G_MAXINT64) {
+ absolute_timeout_us(-1) {
source->monitor = this;
g_source_attach(&source->base, loop.GetContext());
@@ -61,8 +61,8 @@ MultiSocketMonitor::Prepare(gint *timeout_r)
{
int timeout_ms = *timeout_r = PrepareSockets();
absolute_timeout_us = timeout_ms < 0
- ? G_MAXINT64
- : GetTime() + gint64(timeout_ms) * 1000;
+ ? uint64_t(-1)
+ : GetTime() + uint64_t(timeout_ms) * 1000;
return false;
}