Contiki-NG: Declare max_sockets as static const

This commit is contained in:
kkrentz authored and Jon Shallow committed 2023-10-13 14:12:06 +01:00
1 parent 44cf0940c9
commit 2a77fb206d
1 file changed
+1 -1
+1 -1
View File
@@ -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;