From 3d4e0c75cee82cc17fa5da38051b072d9bed61a7 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 30 Jul 2008 14:12:29 +0200 Subject: [PATCH] Avoid mixed stmt/var declare. --- src/statserv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/statserv.c b/src/statserv.c index 9c252e7..c58646f 100644 --- a/src/statserv.c +++ b/src/statserv.c @@ -998,7 +998,6 @@ static void *new_session(void *vp) COMSTACK new_line = (COMSTACK) vp; IOCHAN parent_chan = (IOCHAN) new_line->user; - yaz_log_xml_errors(0, YLOG_WARN); unsigned cs_get_mask, cs_accept_mask, mask = ((new_line->io_pending & CS_WANT_WRITE) ? EVENT_OUTPUT : 0) | ((new_line->io_pending & CS_WANT_READ) ? EVENT_INPUT : 0); @@ -1036,6 +1035,7 @@ static void *new_session(void *vp) #else a = 0; #endif + yaz_log_xml_errors(0, YLOG_WARN); yaz_log(log_session, "Session - OK %d %s %ld", no_sessions, a ? a : "[Unknown]", (long) getpid()); if (max_sessions && no_sessions >= max_sessions) -- 1.7.10.4