X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/disorder/blobdiff_plain/e7eb3a2744aa45179daea235800753d3d1955338..4942ee7d61bf22ba38bf026c7d05028cb7db0d54:/disobedience/client.c diff --git a/disobedience/client.c b/disobedience/client.c index dd40597..45c6c0a 100644 --- a/disobedience/client.c +++ b/disobedience/client.c @@ -37,7 +37,7 @@ static gboolean gtkclient_prepare(GSource *source, gint *timeout) { const struct eclient_source *esource = (struct eclient_source *)source; D(("gtkclient_prepare")); - if(time(0) > esource->last_poll + 10) + if(xtime(0) > esource->last_poll + 10) return TRUE; /* timed out */ *timeout = 3000/*milliseconds*/; return FALSE; /* please poll */ @@ -65,7 +65,7 @@ static gboolean gtkclient_dispatch(GSource *source, mode |= DISORDER_POLL_READ; if(revents & (G_IO_OUT|G_IO_HUP|G_IO_ERR)) mode |= DISORDER_POLL_WRITE; - time(&esource->last_poll); + xtime(&esource->last_poll); disorder_eclient_polled(esource->client, mode); return TRUE; /* ??? not documented */ }