From: Adam Dickmeiss Date: Wed, 30 Jul 2008 12:12:29 +0000 (+0200) Subject: Avoid mixed stmt/var declare. X-Git-Tag: v3.0.38~38 X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=commitdiff_plain;h=3d4e0c75cee82cc17fa5da38051b072d9bed61a7 Avoid mixed stmt/var declare. --- 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)