summaryrefslogtreecommitdiffhomepage
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
commit89e64c631ec8dee41ec4de888548d36887b6ec98 (patch)
tree91fc3aee54e9b9cac7ec893ddf91cb944e3fc220 /listener.c
parent468656b4aab5bc0040e3ecbfd7f66f52a15da76d (diff)
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*)) {