From 1c455284f0f6166beb4212614d4f1e2a177c7ebe Mon Sep 17 00:00:00 2001 From: Joerg Mayer Date: Sun, 17 May 2015 22:59:12 +0200 Subject: Fix some files to pass the pre-commit hook script. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I105bf4e03fcf95cf7541f6377215809759fd933e Reviewed-on: https://code.wireshark.org/review/8502 Reviewed-by: Jörg Mayer --- echld/parent.c | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) (limited to 'echld/parent.c') diff --git a/echld/parent.c b/echld/parent.c index 267ca0fb1f..468291ec60 100644 --- a/echld/parent.c +++ b/echld/parent.c @@ -91,7 +91,7 @@ static void parent_dbg(int level, const char* fmt, ...) { } #define PARENT_DBG(attrs) parent_dbg attrs -#define PARENT_SEND(BYTEARR,CHILDNUM,TYPE,R_ID) do { long st = echld_write_frame(parent.dispatcher_fd, BYTEARR, CHILDNUM, TYPE, R_ID, NULL); PARENT_DBG((1,"SEND type='%s' chld_id=%d reqh_id=%d err_msg='%s'",TY(TYPE),CHILDNUM,R_ID, ( st >= 8 ? "ok" : ((st<0)?strerror(errno):"?") ) )); } while(0) +#define PARENT_SEND(BYTEARR,CHILDNUM,TYPE,R_ID) do { long st = echld_write_frame(parent.dispatcher_fd, BYTEARR, CHILDNUM, TYPE, R_ID, NULL); PARENT_DBG((1,"SEND type='%s' chld_id=%d reqh_id=%d err_msg='%s'",TY(TYPE),CHILDNUM,R_ID, ( st >= 8 ? "ok" : ((st<0)?g_strerror(errno):"?") ) )); } while(0) #else #define PARENT_DBG(attrs) @@ -128,18 +128,22 @@ static void parent_fatal(int exit_code, const char* fmt, ...) { } static void echld_cleanup(void) { - // int i; +#if 0 + int i; +#endif PARENT_DBG((4,"echld_cleanup starting")); - // for (i=0;idispatcher_hello_cb) echld_msgh(0, ECHLD_HELLO, hello_cb, init); PARENT_DBG((3,"Ready")); -- cgit v1.2.3