summaryrefslogtreecommitdiff
path: root/lib/libc/string
diff options
context:
space:
mode:
authorjtc <jtc@NetBSD.org>1994-10-10 04:52:13 +0000
committerjtc <jtc@NetBSD.org>1994-10-10 04:52:13 +0000
commitafdcfb9eeb0024484b82d900fb0157cb2bd91611 (patch)
tree1dca34656cea639643854807c8fc49e1b2071855 /lib/libc/string
parent54e2c829548c83b4605b2fb2267eb65157d6a6ac (diff)
Use __sys_errlist[] & __sys_nerr.
Diffstat (limited to 'lib/libc/string')
-rw-r--r--lib/libc/string/__strerror.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/string/__strerror.c b/lib/libc/string/__strerror.c
index 70b9014470d..30f02dbc4ee 100644
--- a/lib/libc/string/__strerror.c
+++ b/lib/libc/string/__strerror.c
@@ -33,16 +33,19 @@
#if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)strerror.c 5.6 (Berkeley) 5/4/91";*/
-static char *rcsid = "$Id: __strerror.c,v 1.2 1994/10/06 18:17:52 jtc Exp $";
+static char *rcsid = "$Id: __strerror.c,v 1.3 1994/10/10 04:52:13 jtc Exp $";
#endif /* LIBC_SCCS and not lint */
#ifdef NLS
#define catclose __catclose
#define catgets __catgets
#define catopen __catopen
+#define sys_errlist __sys_errlist
+#define sys_nerr __sys_nerr
#include <nl_types.h>
#endif
+#include <stdio.h>
#include <string.h>
/*
@@ -51,9 +54,6 @@ static char *rcsid = "$Id: __strerror.c,v 1.2 1994/10/06 18:17:52 jtc Exp $";
* internal function __strerror().
*/
-extern char *sys_errlist[];
-extern int sys_nerr;
-
char *
__strerror(num, buf)
int num;