# HG changeset patch # User François Perrad # Date 1519139622 -3600 # Node ID fa733a314beefa47d677790c6e2c5e409a4e1495 # Parent 049b28f4be4a0fbf39059b25712245c20c4bdbea use a full prototype (#56) diff -r 049b28f4be4a -r fa733a314bee common-session.c --- a/common-session.c Tue Feb 20 19:35:26 2018 +0800 +++ b/common-session.c Tue Feb 20 16:13:42 2018 +0100 @@ -136,7 +136,7 @@ TRACE(("leave session_init")) } -void session_loop(void(*loophandler)()) { +void session_loop(void(*loophandler)(void)) { fd_set readfd, writefd; struct timeval timeout; diff -r 049b28f4be4a -r fa733a314bee session.h --- a/session.h Tue Feb 20 19:35:26 2018 +0800 +++ b/session.h Tue Feb 20 16:13:42 2018 +0100 @@ -40,7 +40,7 @@ #include "netio.h" void common_session_init(int sock_in, int sock_out); -void session_loop(void(*loophandler)()) ATTRIB_NORETURN; +void session_loop(void(*loophandler)(void)) ATTRIB_NORETURN; void session_cleanup(void); void send_session_identification(void); void send_msg_ignore(void);