ce4f41fe72
solaris9. OK'd by tron@
28 lines
615 B
Text
28 lines
615 B
Text
$NetBSD: patch-ae,v 1.1 2004/03/21 19:49:05 bouyer Exp $
|
|
|
|
--- tli.c.orig Thu Feb 5 11:40:42 2004
|
|
+++ tli.c Thu Feb 5 11:42:25 2004
|
|
@@ -40,8 +40,6 @@
|
|
|
|
extern char *nc_sperror();
|
|
extern int errno;
|
|
-extern char *sys_errlist[];
|
|
-extern int sys_nerr;
|
|
extern int t_errno;
|
|
extern char *t_errlist[];
|
|
extern int t_nerr;
|
|
@@ -317,12 +315,8 @@
|
|
return (t_errlist[t_errno]);
|
|
}
|
|
} else {
|
|
- if (errno < 0 || errno >= sys_nerr) {
|
|
- sprintf(buf, "Unknown UNIX error %d", errno);
|
|
- return (buf);
|
|
- } else {
|
|
- return (sys_errlist[errno]);
|
|
- }
|
|
+ strcpy(buf, strerror(errno));
|
|
+ return (buf);
|
|
}
|
|
}
|
|
|