summaryrefslogtreecommitdiff
path: root/lib/bind/bsd/strerror.c
diff options
context:
space:
mode:
authorDoug Barton <dougb@FreeBSD.org>2009-01-09 09:58:33 +0000
committerDoug Barton <dougb@FreeBSD.org>2009-01-09 09:58:33 +0000
commit0da30d61e624fa6fbd4d6b2057244e0c9e0c213b (patch)
tree76e88c380de063d6c34d9c662df82c2ee84b3bf1 /lib/bind/bsd/strerror.c
parent84c329fd83557f6415f6355007797dbcbaa685b0 (diff)
Notes
Diffstat (limited to 'lib/bind/bsd/strerror.c')
-rw-r--r--lib/bind/bsd/strerror.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/bind/bsd/strerror.c b/lib/bind/bsd/strerror.c
index d13adbb03b4d..5fba248f3624 100644
--- a/lib/bind/bsd/strerror.c
+++ b/lib/bind/bsd/strerror.c
@@ -1,6 +1,6 @@
#if defined(LIBC_SCCS) && !defined(lint)
static const char sccsid[] = "@(#)strerror.c 8.1 (Berkeley) 6/4/93";
-static const char rcsid[] = "$Id: strerror.c,v 1.3.2.1 2001/11/02 17:45:31 gson Exp $";
+static const char rcsid[] = "$Id: strerror.c,v 1.3.2.1.10.1 2008/04/28 04:25:42 marka Exp $";
#endif /* LIBC_SCCS and not lint */
/*
@@ -60,12 +60,14 @@ isc_strerror(int num) {
static char ebuf[40] = UPREFIX; /* 64-bit number + slop */
u_int errnum;
char *p, *t;
+#ifndef USE_SYSERROR_LIST
const char *ret;
+#endif
char tmp[40];
errnum = num; /* convert to unsigned */
#ifdef USE_SYSERROR_LIST
- if (errnum < sys_nerr)
+ if (errnum < (u_int)sys_nerr)
return (sys_errlist[errnum]);
#else
#undef strerror