Fix compilation warnings
This commit is contained in:
@@ -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
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user