[trivial PATCH 21/22] [rlm_sql_log.c] eliminate build warnings

Wang Tinggong wangtinggong at gmail.com
Mon Feb 1 18:32:36 CET 2010


Signed-off-by: Wang Tinggong <wangtinggong at gmail.com>
---
 src/modules/rlm_sql_log/rlm_sql_log.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/modules/rlm_sql_log/rlm_sql_log.c b/src/modules/rlm_sql_log/rlm_sql_log.c
index a4ab2b8..85b5985 100644
--- a/src/modules/rlm_sql_log/rlm_sql_log.c
+++ b/src/modules/rlm_sql_log/rlm_sql_log.c
@@ -200,13 +200,13 @@ static size_t sql_escape_func(char *out, size_t outlen, const char *in)
 static size_t sql_utf8_escape_func(char *out, size_t outlen, const char *in)
 {
 	int len = 0;
-	int utf8 = 0;
+	unsigned int utf8 = 0;
 
 	while (in[0]) {
 		/* 
 		 * Skip over UTF8 characters
 		 */
-		utf8 = fr_utf8_char((uint8_t *)in);
+		utf8 = fr_utf8_char((const uint8_t *)in);
 		if (utf8) {
 			if (outlen <= utf8) {
 				break;
-- 
1.6.0.6



More information about the Freeradius-Devel mailing list