mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-23 07:35:13 +03:00
Contiki-NG: Declare max_sockets as static const
This commit is contained in:
1 parent
44cf0940c9
commit
2a77fb206d
1 file changed
+1
-1
@@ -56,7 +56,7 @@ static void
|
||||
prepare_io(coap_context_t *ctx) {
|
||||
coap_tick_t now;
|
||||
coap_socket_t *sockets[1];
|
||||
unsigned int max_sockets = sizeof(sockets)/sizeof(sockets[0]);
|
||||
static const unsigned int max_sockets = sizeof(sockets)/sizeof(sockets[0]);
|
||||
unsigned int num_sockets;
|
||||
unsigned timeout;
|
||||
|
||||
|
||||
Reference in new issue
Block a user