cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: sys_nerr warning

From: Joe Halpin <j.p.h_at_comcast.net>
Date: Sat, 03 Apr 2004 11:16:23 -0600

Joe Halpin wrote:
> This patch elminates the warning about sys_nerr on FreeBSD:
>
> ../../curl/lib/strerror.c:489: warning: type qualifiers for `sys_nerr'
> conflict with previous decl

Sorry, I forgot the -u when doing the diff:

Index: lib/strerror.c
===================================================================
RCS file: /repository/curl/lib/strerror.c,v
retrieving revision 1.4
diff -u -r1.4 strerror.c
--- lib/strerror.c 29 Mar 2004 07:25:59 -0000 1.4
+++ lib/strerror.c 3 Apr 2004 17:15:38 -0000
@@ -486,7 +486,7 @@
  #endif /* WIN32 && !__CYGWIN__ */

  #ifndef WIN32
-extern int sys_nerr;
+extern const int sys_nerr;
  #endif
Received on 2004-04-03