pkgsrc/security/tcp_wrappers/patches/patch-ac
2004-03-21 19:49:05 +00:00

28 lines
624 B
Text

$NetBSD: patch-ac,v 1.1 2004/03/21 19:49:05 bouyer Exp $
--- tli-sequent.c.orig Thu Feb 5 11:40:42 2004
+++ tli-sequent.c Thu Feb 5 11:43:16 2004
@@ -31,8 +31,6 @@
#include <string.h>
extern int errno;
-extern char *sys_errlist[];
-extern int sys_nerr;
extern int t_errno;
extern char *t_errlist[];
extern int t_nerr;
@@ -157,12 +155,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);
}
}