From: Marko Kreen Date: Tue, 8 Jan 2008 14:15:58 +0000 (+0000) Subject: asynctest: small cleanup X-Git-Tag: pgbouncer_1_2_rc2~78 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a531377155adb74217f73eefcf99d75e88c817bd;p=pgbouncer asynctest: small cleanup --- diff --git a/test/asynctest.c b/test/asynctest.c index 0f001c8..21fc1ad 100644 --- a/test/asynctest.c +++ b/test/asynctest.c @@ -12,14 +12,14 @@ #include #include -typedef void (*libev_cb_f)(int sock, short flags, void *arg); - static void log_error(const char *, ...); static void log_debug(const char *, ...); static void fatal(const char *fmt, ...); #include "list.h" +typedef void (*libev_cb_f)(int sock, short flags, void *arg); + typedef struct DbConn { List head; const char *connstr; @@ -51,6 +51,8 @@ static int per_conn_queries = 1; static STATLIST(idle_list); static STATLIST(active_list); +static usec_t _time_cache = 0; + /* * utility functions */ @@ -61,7 +63,6 @@ static usec_t get_time_usec(void) gettimeofday(&tv, NULL); return (usec_t)tv.tv_sec * USEC + tv.tv_usec; } -static usec_t _time_cache = 0; static usec_t get_cached_time(void) {