From 598056d1686127285c389cacbdd20707c350d05a Mon Sep 17 00:00:00 2001 From: Francois Perrad Date: Sat, 19 Aug 2017 22:39:53 +0200 Subject: Pointer parameter could be declared as pointing to const (callback) --- tcp-accept.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tcp-accept.c') diff --git a/tcp-accept.c b/tcp-accept.c index 82f4a86..18cd8c6 100644 --- a/tcp-accept.c +++ b/tcp-accept.c @@ -35,7 +35,7 @@ #if DROPBEAR_TCP_ACCEPT -static void cleanup_tcp(struct Listener *listener) { +static void cleanup_tcp(const struct Listener *listener) { struct TCPListener *tcpinfo = (struct TCPListener*)(listener->typedata); @@ -52,7 +52,7 @@ int tcp_prio_inithandler(struct Channel* channel) return 0; } -static void tcp_acceptor(struct Listener *listener, int sock) { +static void tcp_acceptor(const struct Listener *listener, int sock) { int fd; struct sockaddr_storage sa; -- cgit v1.2.3