aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2003-11-28 10:48:13 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2003-11-28 10:48:13 +0000
commiteb366e1abf1dba9af43854b9c859beb263bcb1ac (patch)
tree6a531ba677aa08ed3215dad491109f15dbe1005b
parenta0698a6c154e249959b60dba41bc3dd0cb00e139 (diff)
downloadcpio-eb366e1abf1dba9af43854b9c859beb263bcb1ac.tar.gz
cpio-eb366e1abf1dba9af43854b9c859beb263bcb1ac.tar.bz2
Removed useless private_errstring
-rw-r--r--rmt.c29
1 files changed, 5 insertions, 24 deletions
diff --git a/rmt.c b/rmt.c
index dd38f11..d616b9e 100644
--- a/rmt.c
+++ b/rmt.c
@@ -66,6 +66,11 @@ long lseek ();
extern char *malloc ();
#endif
+#include <errno.h>
+#if !HAVE_DECL_STRERROR
+extern const char *strerror (int en);
+#endif
+
int tape = -1;
char *record;
@@ -78,30 +83,6 @@ void error ();
char device[SSIZE];
char count[SSIZE], mode[SSIZE], pos[SSIZE], op[SSIZE];
-extern errno;
-extern const char *const _sys_errlist[];
-/* Debian hack: rmt has problems on systems (such as the Hurd) where
- sys_errlist is not available therefore I borrowed some code from
- error.c to fix this problem. This has been reported to the upstream
- maintainers. (7/22/99) - BEM */
-#if HAVE_STRERROR || _LIBC
-# ifndef strerror /* On some systems, strerror is a macro */
-char *strerror ();
-# endif
-#else
-static char *
-private_strerror (errnum)
- int errnum;
-{
- extern char *sys_errlist[];
- extern int sys_nerr;
-
- if (errnum > 0 && errnum <= sys_nerr)
- return sys_errlist[errnum];
- return "Unknown system error";
-}
-#define strerror private_strerror
-#endif
char resp[BUFSIZ];
FILE *debug;

Return to:

Send suggestions and report system problems to the System administrator.