Mercurial > dropbear
diff listener.h @ 1459:06d52bcb8094
Pointer parameter could be declared as pointing to const
author | Francois Perrad <francois.perrad@gadz.org> |
---|---|
date | Sat, 19 Aug 2017 17:16:13 +0200 |
parents | 9169e4e7cbee |
children | 58a74cb829b8 |
line wrap: on
line diff
--- a/listener.h Sat Aug 12 20:51:58 2017 +0200 +++ b/listener.h Sat Aug 19 17:16:13 2017 +0200 @@ -47,10 +47,10 @@ }; void listeners_initialise(void); -void handle_listeners(fd_set * readfds); +void handle_listeners(const fd_set * readfds); void set_listener_fds(fd_set * readfds); -struct Listener* new_listener(int socks[], unsigned int nsocks, +struct Listener* new_listener(const int socks[], unsigned int nsocks, int type, void* typedata, void (*acceptor)(struct Listener* listener, int sock), void (*cleanup)(struct Listener*));