X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/812b526d127c6657e571db8b33a58137af6709cd..9e89d26a8e1378f17a19da072c5f7308ddaf24f1:/disobedience/client.c?ds=inline 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 */ }