diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2023-06-13 18:27:10 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2023-06-13 23:27:20 -0700 |
commit | 3e3032cfa044268cee76735823755db274025021 (patch) | |
tree | ead68726685be0e1b6fdccd5c78f132dfb093517 /src/til_stream.c | |
parent | 2825d01bf16f8b22f8eb9b92b2c21a654c13e563 (diff) |
*: smattering of random small fixes to silence -Wall
I thought the build was already using -Wall but that seems to not
be the case, maybe got lost somewhere along the line or messed up
in configure.ac
After forcing a build with -Wall -Werror, these showed up.
Fixed up in the obvious way, nothing too scary.
Diffstat (limited to 'src/til_stream.c')
-rw-r--r-- | src/til_stream.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/til_stream.c b/src/til_stream.c index e04f807..c24f239 100644 --- a/src/til_stream.c +++ b/src/til_stream.c @@ -273,7 +273,7 @@ int til_stream_tap(til_stream_t *stream, const void *owner, const void *owner_fo void til_stream_untap_owner(til_stream_t *stream, const void *owner) { for (int i = 0; i < TIL_STREAM_PIPE_BUCKETS_COUNT; i++) { - for (til_stream_pipe_t *p = stream->pipe_buckets[i], *p_next, *p_prev; p != NULL; p = p_next) { + for (til_stream_pipe_t *p = stream->pipe_buckets[i], *p_next, *p_prev = NULL; p != NULL; p = p_next) { p_next = p->next; if (p->owner == owner || p->driving_tap->owner == owner) { @@ -682,6 +682,8 @@ static int til_stream_fprint_module_context_cb(void *arg, til_stream_module_cont for (size_t i = 0; i < n_module_contexts; i++) fprintf(out, "%s{rc=%u, n_cpus=%u}", i ? ", " : " ", contexts[i]->refcount, contexts[i]->n_cpus); fprintf(out, "\n"); + + return 0; } |