changeset 1531:fa733a314bee

use a full prototype (#56)
author François Perrad <francois.perrad@gadz.org>
date Tue, 20 Feb 2018 16:13:42 +0100
parents 049b28f4be4a
children 3616ec41d03d
files common-session.c session.h
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;
--- 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);