summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authorrodrigc <rodrigc@FreeBSD.org>2005-09-11 16:13:02 +0000
committerrodrigc <rodrigc@FreeBSD.org>2005-09-11 16:13:02 +0000
commitc3a9c8a90b59b3099415974cc04763cf41ea306d (patch)
treeb91b1b64eaeb2aebe5b13bc4f488d9be11ff3dc8 /sys/net
parent0ccfef16a38c5237efb5321e5f27cdcca13fa638 (diff)
downloadFreeBSD-src-c3a9c8a90b59b3099415974cc04763cf41ea306d.zip
FreeBSD-src-c3a9c8a90b59b3099415974cc04763cf41ea306d.tar.gz
Forward declare z_errmsg with static linkage since it is defined
with static linkage later in the file. Eliminates GCC 4.0 error.
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/zlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/zlib.c b/sys/net/zlib.c
index 73e9572..8fc8cab 100644
--- a/sys/net/zlib.c
+++ b/sys/net/zlib.c
@@ -94,7 +94,7 @@ typedef unsigned short ush;
typedef ush FAR ushf;
typedef unsigned long ulg;
-extern const char *z_errmsg[10]; /* indexed by 2-zlib_error */
+static const char *z_errmsg[10]; /* indexed by 2-zlib_error */
/* (size given to avoid silly warnings with Visual C++) */
#define ERR_MSG(err) z_errmsg[Z_NEED_DICT-(err)]
OpenPOWER on IntegriCloud