mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
route: extend lws_route_uidx_t from 1 byte to 2 bytes
This commit is contained in:
parent
fcde566fc6
commit
4fb9a535db
2 changed files with 3 additions and 2 deletions
|
@ -33,7 +33,8 @@
|
|||
#include <lwip/sockets.h>
|
||||
#endif
|
||||
|
||||
typedef uint8_t lws_route_uidx_t;
|
||||
/* cope with large amounts of route information */
|
||||
typedef uint16_t lws_route_uidx_t;
|
||||
|
||||
typedef struct lws_dns_score {
|
||||
uint8_t precedence;
|
||||
|
|
|
@ -103,7 +103,7 @@ _lws_routing_table_dump(struct lws_context *cx)
|
|||
lws_route_uidx_t
|
||||
_lws_route_get_uidx(struct lws_context *cx)
|
||||
{
|
||||
uint8_t ou;
|
||||
lws_route_uidx_t ou;
|
||||
|
||||
if (!cx->route_uidx)
|
||||
cx->route_uidx++;
|
||||
|
|
Loading…
Add table
Reference in a new issue