1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

WITH_STATS: fix signed build warnings

This commit is contained in:
Andy Green 2017-11-05 06:54:31 +08:00
parent a1ce8feba2
commit 95f1cd6ea8

View file

@ -2968,8 +2968,9 @@ lws_stats_log_dump(struct lws_context *context)
#if defined(LWS_WITH_PEER_LIMITS)
m = 0;
for (n = 0; n < context->pl_hash_elements; n++) {
lws_start_foreach_llp(struct lws_peer **, peer, context->pl_hash_table[n]) {
for (n = 0; n < (int)context->pl_hash_elements; n++) {
lws_start_foreach_llp(struct lws_peer **, peer,
context->pl_hash_table[n]) {
m++;
} lws_end_foreach_llp(peer, next);
}
@ -2981,7 +2982,7 @@ lws_stats_log_dump(struct lws_context *context)
}
if (m) {
for (n = 0; n < context->pl_hash_elements; n++) {
for (n = 0; n < (int)context->pl_hash_elements; n++) {
char buf[72];
lws_start_foreach_llp(struct lws_peer **, peer, context->pl_hash_table[n]) {