summaryrefslogtreecommitdiff
path: root/listener.c
diff options
context:
space:
mode:
authorFrancois Perrad <francois.perrad@gadz.org>2017-08-19 17:16:13 +0200
committerFrancois Perrad <francois.perrad@gadz.org>2017-08-19 17:16:13 +0200
commit63300b49f30b3d63a551d4d568ae95fea24035ba (patch)
treef0cbad938d5ecac73806a7d9a5ae25268086fb31 /listener.c
parent2eb1f9f6e588a675226bfefb379156378b065422 (diff)
downloaddropbear-63300b49f30b3d63a551d4d568ae95fea24035ba.tar.gz
Pointer parameter could be declared as pointing to const
Diffstat (limited to 'listener.c')
-rw-r--r--listener.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/listener.c b/listener.c
index a7f0730..c688005 100644
--- a/listener.c
+++ b/listener.c
@@ -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*)) {