[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: monit net.c p.y validate.c
From: |
Jan-Henrik Haukeland |
Subject: |
Re: monit net.c p.y validate.c |
Date: |
Wed, 22 Oct 2003 02:00:27 +0200 |
User-agent: |
Gnus/5.1002 (Gnus v5.10.2) XEmacs/21.4 (Reasonable Discussion, linux) |
Rory Toma <address@hidden> writes:
> Yep. Here is the warning:
>
> gcc -c -g -O2 -Wall -D _REENTRANT -D_POSIX_PTHREAD_SEMANTICS
> -I/usr/local/ssl/include -I/usr/local/ssl/include -DSOLARIS -I.
> -I./device -I./http -I./process -I./protocols external/strftime.c -o
> external/strftime.o
> external/strftime.c: In function `memcpy_lowcase':
> external/strftime.c:246: warning: subscript has type `char'
> external/strftime.c: In function `memcpy_uppcase':
> external/strftime.c:259: warning: subscript has type `char'
> external/strftime.c: In function `gnu_strftime':
> external/strftime.c:630: warning: subscript has type `char'
Just cast TOUPPER and TOLOWER with char, like so:
dest[len] = (char)TOLOWER (src[len]);
The warning is due to the fact that dest[len] is a char but toupper()
returns an int.
Anyway, does the ping function now works for Solaris and FreeBSD?
--
Jan-Henrik Haukeland