diff options
Diffstat (limited to 'daemon/misc.c')
-rw-r--r-- | daemon/misc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/daemon/misc.c b/daemon/misc.c index ca14ee3..49c585e 100644 --- a/daemon/misc.c +++ b/daemon/misc.c @@ -27,6 +27,7 @@ #include <err.h> #include <stdio.h> #include <fcntl.h> +#include <unistd.h> extern int g_debuglevel; extern int g_daemonized; @@ -53,7 +54,6 @@ static void vmessage(const ha_request_t* rq, int level, int err, size_t len; char* m; int e = errno; - int x; if(g_daemonized) { @@ -390,7 +390,7 @@ int ha_uriparse(ha_buffer_t* buf, const char* suri, ha_uri_t* uri) if(str[0] == '/') { deal_with_path: - *str == 0; + *str = 0; ++str; /* @@ -611,7 +611,7 @@ int ha_uricmp(ha_uri_t* one, ha_uri_t* two) /* The scheme */ if((r = uri_cmp_part_s(one->scheme, two->scheme, "http", 0)) != 0 || - (r = uri_cmp_part_s(one->host, two->host, NULL, 1)) != 0 != 0 || + (r = uri_cmp_part_s(one->host, two->host, NULL, 1)) != 0 || (r = uri_cmp_part_n(one->port, two->port, 80)) != 0 || (r = uri_cmp_part_s(one->path, two->path, NULL, 0)) != 0 || (r = uri_cmp_part_s(one->query, two->query, NULL, 0)) != 0 || |