Fix compilation warnings

This commit is contained in:
2025-12-03 00:03:44 +01:00
parent b0b2d576cc
commit 012b31df3a
3 changed files with 64 additions and 12 deletions
+1
View File
@@ -22,6 +22,7 @@ int main(int argc, char **argv)
}
http_server_set_reuse_addr(&server, config.reuse_addr);
http_server_set_trace_bytes(&server, config.trace_bytes);
if (http_server_listen_tcp(&server, config.local_addr, config.local_port) < 0) {
printf("http_server_listen_tcp error\n");
return -1;
+2 -1
View File
@@ -108,7 +108,8 @@ bool process_completion_read_file(ProxyState *state,
operation->request->url.path.ptr,
operation->request->url.path.len,
};
operation->handle = toasty_begin_read(state->backend, path, operation->transferred, dst, cap, TOASTY_VERSION_TAG_EMPTY);
operation->handle = toasty_begin_read(state->backend, path,
operation->transferred, dst, cap, TOASTY_VERSION_TAG_EMPTY);
if (operation->handle == TOASTY_INVALID) {
assert(0); // TODO
}