From 4695596db6b528138493aa1f1150f56d0ab0b484 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Fri, 18 Jun 2010 21:05:30 +0200 Subject: [PATCH] src/utils_params.c: Fix some compiler warnings. --- src/utils_params.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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; -- 2.11.0