summaryrefslogtreecommitdiff
path: root/openbox/mainloop.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbox/mainloop.c')
-rw-r--r--openbox/mainloop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbox/mainloop.c b/openbox/mainloop.c
index 3f9381f3..0dd3b6b8 100644
--- a/openbox/mainloop.c
+++ b/openbox/mainloop.c
@@ -565,9 +565,9 @@ void ob_main_loop_fd_remove(ObMainLoop *loop,
#define NEAREST_TIMEOUT(loop) \
(((ObMainLoopTimer*)(loop)->timers->data)->timeout)
-static long timecompare(GTimeVal *a, GTimeVal *b)
+static glong timecompare(GTimeVal *a, GTimeVal *b)
{
- long r;
+ glong r;
if ((r = b->tv_sec - a->tv_sec)) return r;
return b->tv_usec - a->tv_usec;