aboutsummaryrefslogtreecommitdiffstats
path: root/src/event/MultiSocketMonitor.hxx
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.hxx
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.hxx')
-rw-r--r--src/event/MultiSocketMonitor.hxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/event/MultiSocketMonitor.hxx b/src/event/MultiSocketMonitor.hxx
index 941487534..f6ce43d52 100644
--- a/src/event/MultiSocketMonitor.hxx
+++ b/src/event/MultiSocketMonitor.hxx
@@ -29,6 +29,7 @@
#include <forward_list>
#include <assert.h>
+#include <stdint.h>
#ifdef WIN32
/* ERRORis a WIN32 macro that poisons our namespace; this is a
@@ -52,7 +53,7 @@ class MultiSocketMonitor {
EventLoop &loop;
Source *source;
- gint64 absolute_timeout_us;
+ uint64_t absolute_timeout_us;
std::forward_list<GPollFD> fds;
public:
@@ -69,7 +70,7 @@ public:
}
gcc_pure
- gint64 GetTime() const {
+ uint64_t GetTime() const {
return g_source_get_time(&source->base);
}