X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=openbox%2Fmainloop.c;h=0dd3b6b8b4e881497ff3ecc92b755774b5347bfc;hb=5a1ad84c0583ff4dd8df01e63488e9c04daf6eab;hp=3f9381f3e7dc12c6f8996bc84b69a7d48295a15e;hpb=ef414287e51d0221685a3008d40d5093bec2d18e;p=chaz%2Fopenbox 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;