diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2019-10-04 02:10:02 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2020-02-24 11:15:32 -0500 |
commit | 62e97967ca9356b2645b6090512ab3dbac83e8ed (patch) | |
tree | 634c0b3b5dd20ff1283d426e1c717eef09f79e62 /src/mod_wstunnel.c | |
parent | ddb78f75ee66968165c5110f29f24405579b3dfc (diff) | |
download | lighttpd-git-62e97967ca9356b2645b6090512ab3dbac83e8ed.tar.gz |
[core] prefer uint32_t to size_t in base.h
even 2 billion is way larger than even extreme operating values
expected for the members in base.h
include some structs directly in struct server, rather than by ptr
Diffstat (limited to 'src/mod_wstunnel.c')
-rw-r--r-- | src/mod_wstunnel.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mod_wstunnel.c b/src/mod_wstunnel.c index c0864719..00532b57 100644 --- a/src/mod_wstunnel.c +++ b/src/mod_wstunnel.c @@ -89,8 +89,8 @@ #include "chunk.h" #include "fdevent.h" #include "http_header.h" -#include "joblist.h" #include "log.h" +#include "connections.h" #define MOD_WEBSOCKET_LOG_NONE 0 #define MOD_WEBSOCKET_LOG_ERR 1 @@ -603,8 +603,8 @@ TRIGGER_FUNC(mod_wstunnel_handle_trigger) { gw_handle_trigger(srv, p_d); - for (size_t i = 0; i < srv->conns->used; ++i) { - connection *con = srv->conns->ptr[i]; + for (uint32_t i = 0; i < srv->conns.used; ++i) { + connection *con = srv->conns.ptr[i]; handler_ctx *hctx = con->plugin_ctx[p->id]; if (NULL == hctx || con->mode != p->id) continue; |