be3eb43b52
Fix errno.
25 lines
576 B
Text
25 lines
576 B
Text
$NetBSD: patch-ae,v 1.2 2006/02/23 21:24:12 joerg Exp $
|
|
--- rw/rwTable.c.orig Thu Dec 31 20:12:10 1998
|
|
+++ rw/rwTable.c Thu Dec 31 20:13:44 1998
|
|
@@ -122,7 +122,6 @@ static char *usedMagicReader = NULL;
|
|
static Image *
|
|
readMagic(char *file)
|
|
{
|
|
- extern int errno;
|
|
int i;
|
|
|
|
errno = 0;
|
|
@@ -231,13 +230,6 @@ RWtableGetWriterList()
|
|
char *
|
|
RWGetMsg()
|
|
{
|
|
-#if defined(BSD4_4)
|
|
- __const extern char *__const sys_errlist[];
|
|
-#else
|
|
- extern char *sys_errlist[];
|
|
-#endif
|
|
- extern int errno;
|
|
-
|
|
if (RWtableMsg[0] == '\0') {
|
|
if (errno == 0)
|
|
return "";
|