Mercurial > dropbear
comparison 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 |
comparison
equal
deleted
inserted
replaced
1458:bdd3802c8ac6 | 1459:06d52bcb8094 |
---|---|
45 void *typedata; | 45 void *typedata; |
46 | 46 |
47 }; | 47 }; |
48 | 48 |
49 void listeners_initialise(void); | 49 void listeners_initialise(void); |
50 void handle_listeners(fd_set * readfds); | 50 void handle_listeners(const fd_set * readfds); |
51 void set_listener_fds(fd_set * readfds); | 51 void set_listener_fds(fd_set * readfds); |
52 | 52 |
53 struct Listener* new_listener(int socks[], unsigned int nsocks, | 53 struct Listener* new_listener(const int socks[], unsigned int nsocks, |
54 int type, void* typedata, | 54 int type, void* typedata, |
55 void (*acceptor)(struct Listener* listener, int sock), | 55 void (*acceptor)(struct Listener* listener, int sock), |
56 void (*cleanup)(struct Listener*)); | 56 void (*cleanup)(struct Listener*)); |
57 | 57 |
58 struct Listener * get_listener(int type, void* typedata, | 58 struct Listener * get_listener(int type, void* typedata, |