httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <traw...@ibm.net>
Subject Re: [PATCH] Yet another compile warning patch
Date Mon, 19 Jun 2000 22:47:54 GMT
> Date: Mon, 19 Jun 2000 18:36:32 -0400 (EDT)
> From: "Victor J. Orlikowski" <vjo@raleigh.ibm.com>
> 
> Index: src/lib/apr/misc/unix/errorcodes.c
> ===================================================================
> RCS file: /cvs/apache/apache-2.0/src/lib/apr/misc/unix/errorcodes.c,v
> retrieving revision 1.21
> diff -u -r1.21 errorcodes.c
> --- errorcodes.c        2000/06/13 13:41:21     1.21
> +++ errorcodes.c        2000/06/19 22:34:55
> @@ -247,7 +247,7 @@
>  static char *apr_os_strerror(char* buf, ap_size_t bufsize, int err)
>  {
>  #ifdef HAVE_HSTRERROR
> -    return stuffbuffer(buf, bufsize, hstrerror(err));
> +    return stuffbuffer(buf, bufsize, (char *)hstrerror(err));
>  #else /* HAVE_HSTRERROR */
>      const char *msg;

That doesn't seem right...  What is the warning?  What is the AIX
prototype for hstrerror() and what header file is it in?  Something
is wrong (or I'm real confused) if we have to cast the return value of
hstrerror() to char *.

-- 
Jeff Trawick | trawick@ibm.net | PGP public key at web site:
     http://www.geocities.com/SiliconValley/Park/9289/
          Born in Roswell... married an alien...

Mime
View raw message