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

Gabriel Blanchard gabe at teksavvy.ca
Mon Feb 1 18:33:30 CET 2010


can you not submit all these in _ONE_ email.

k thanks...

On 2010-02-01, at 12:32 PM, Wang Tinggong wrote:

> 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
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/devel.html
> 





More information about the Freeradius-Devel mailing list