diff options
| author | Laurent Bercot <ska-skaware@skarnet.org> | 2023-11-07 23:03:56 +0000 |
|---|---|---|
| committer | Laurent Bercot <ska@appnovation.com> | 2023-11-07 23:03:56 +0000 |
| commit | 4eda14316376fb1e657ac2da269533e2422d2399 (patch) | |
| tree | ef7bbc29a69e975a132b4473b75c71ddebfc4404 /src/tipideed/tipideed.c | |
| parent | c5e284cb04dc542355ae04f604fd0edb69ff689e (diff) | |
| download | tipidee-4eda14316376fb1e657ac2da269533e2422d2399.tar.gz | |
Prepare for 0.0.1.1. Minor code cleanups.
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src/tipideed/tipideed.c')
| -rw-r--r-- | src/tipideed/tipideed.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/tipideed/tipideed.c b/src/tipideed/tipideed.c index 4df6e8f..56ef46c 100644 --- a/src/tipideed/tipideed.c +++ b/src/tipideed/tipideed.c @@ -373,7 +373,6 @@ int main (int argc, char const *const *argv, char const *const *envp) if (!tain_now_set_stopwatch_g()) strerr_diefu1sys(111, "initialize clock") ; - tipidee_log_start(g.logv, g.sa.s + remoteip, g.sa.s + remotehost) ; @@ -386,7 +385,7 @@ int main (int argc, char const *const *argv, char const *const *envp) tipidee_headers hdr ; int e ; unsigned int localredirs = 0 ; - size_t content_length ; + size_t content_length = 0 ; tipidee_transfercoding tcoding = TIPIDEE_TRANSFERCODING_UNKNOWN ; char uribuf[URI_BUFSIZE] ; char hdrbuf[HDR_BUFSIZE] ; @@ -394,7 +393,7 @@ int main (int argc, char const *const *argv, char const *const *envp) tain_add_g(&deadline, &g.readtto) ; bodysa.len = 0 ; - e = tipidee_rql_read_g(buffer_0, uribuf, URI_BUFSIZE, &content_length, &rql, &deadline) ; + e = tipidee_rql_read_g(buffer_0, uribuf, URI_BUFSIZE, 0, &rql, &deadline) ; switch (e) { case -1 : log_and_exit(1) ; /* bad client */ @@ -407,7 +406,6 @@ int main (int argc, char const *const *argv, char const *const *envp) if (rql.http_major != 1) log_and_exit(1) ; if (rql.http_minor > 1) eexit_400(&rql, "Bad HTTP version") ; - content_length = 0 ; tipidee_headers_init(&hdr, hdrbuf, HDR_BUFSIZE) ; e = tipidee_headers_timed_parse_g(buffer_0, &hdr, &deadline) ; switch (e) @@ -491,7 +489,7 @@ int main (int argc, char const *const *argv, char const *const *envp) if (rql.m == TIPIDEE_METHOD_TRACE) { - respond_trace(hdrbuf, &rql, &hdr) ; + respond_trace(&rql, &hdr) ; continue ; } |
