From: Florian Forster Date: Fri, 18 Jun 2010 19:05:30 +0000 (+0200) Subject: src/utils_params.c: Fix some compiler warnings. X-Git-Tag: v4.0.0~241 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4695596db6b528138493aa1f1150f56d0ab0b484;p=collection4.git src/utils_params.c: Fix some compiler warnings. --- diff --git a/src/utils_params.c b/src/utils_params.c index bfde56b..dbe085d 100644 --- a/src/utils_params.c +++ b/src/utils_params.c @@ -3,6 +3,7 @@ #include #include #include +#include #include "utils_params.h" @@ -232,7 +233,7 @@ int uri_escape (char *dst, const char *src, size_t size) /* {{{ */ else if ((src[in] < 32) || (src[in] == '&') || (src[in] == ';') - || (src[in] >= 128)) + || (((unsigned char) src[in]) >= 128)) { char esc[4]; @@ -254,9 +255,11 @@ int uri_escape (char *dst, const char *src, size_t size) /* {{{ */ in++; } } /* while (42) */ + + return (0); } /* }}} int uri_escape */ -const char *script_name (void) +const char *script_name (void) /* {{{ */ { char *ret;