diff options
author | Francois Perrad <francois.perrad@gadz.org> | 2017-08-19 17:16:13 +0200 |
---|---|---|
committer | Francois Perrad <francois.perrad@gadz.org> | 2017-08-19 17:16:13 +0200 |
commit | 63300b49f30b3d63a551d4d568ae95fea24035ba (patch) | |
tree | f0cbad938d5ecac73806a7d9a5ae25268086fb31 /listener.c | |
parent | 2eb1f9f6e588a675226bfefb379156378b065422 (diff) | |
download | dropbear-63300b49f30b3d63a551d4d568ae95fea24035ba.tar.gz |
Pointer parameter could be declared as pointing to const
Diffstat (limited to 'listener.c')
-rw-r--r-- | listener.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -53,7 +53,7 @@ void set_listener_fds(fd_set * readfds) { } -void handle_listeners(fd_set * readfds) { +void handle_listeners(const fd_set * readfds) { unsigned int i, j; struct Listener *listener; @@ -76,7 +76,7 @@ void handle_listeners(fd_set * readfds) { /* acceptor(int fd, void* typedata) is a function to accept connections, * cleanup(void* typedata) happens when cleaning up */ -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*)) { |