summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1998-03-03 16:20:52 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1998-03-03 16:20:52 +0000
commit607e0a252789e62ad5163c2a9526a764c9428ec6 (patch)
treec571dc175c489416f601196f097864f8fff2fe5d
parentRemoved use of dc. David Fiddes reported that this is part of the (diff)
downloadrtems-607e0a252789e62ad5163c2a9526a764c9428ec6.tar.bz2
Switched from "extern int errno" to "#include <errno.h>".
Diffstat (limited to '')
-rw-r--r--c/build-tools/cklength.c2
-rw-r--r--c/build-tools/eolstrip.c2
-rw-r--r--c/build-tools/src/cklength.c2
-rw-r--r--c/build-tools/src/eolstrip.c2
-rw-r--r--c/build-tools/src/unhex.c2
-rw-r--r--c/build-tools/unhex.c2
-rw-r--r--tools/build/cklength.c2
-rw-r--r--tools/build/eolstrip.c2
-rw-r--r--tools/build/src/cklength.c2
-rw-r--r--tools/build/src/eolstrip.c2
-rw-r--r--tools/build/src/unhex.c2
-rw-r--r--tools/build/unhex.c2
12 files changed, 12 insertions, 12 deletions
diff --git a/c/build-tools/cklength.c b/c/build-tools/cklength.c
index 4b712a1d63..624bf25e70 100644
--- a/c/build-tools/cklength.c
+++ b/c/build-tools/cklength.c
@@ -34,6 +34,7 @@ maximum line length. The default maximum line length is 80.\n\
#include <string.h>
#include <memory.h>
#include <stdarg.h>
+#include <errno.h>
#include "config.h"
@@ -85,7 +86,6 @@ int line_length = 80; /* maximum allowable line length */
extern char *optarg; /* getopt(3) control vars */
extern int optind, opterr;
-extern int errno;
char *progname; /* for error() */
diff --git a/c/build-tools/eolstrip.c b/c/build-tools/eolstrip.c
index 467b352322..c944ae6663 100644
--- a/c/build-tools/eolstrip.c
+++ b/c/build-tools/eolstrip.c
@@ -29,6 +29,7 @@ Strip the white space from the end of every line on the list of files.\n\
#include <string.h>
#include <memory.h>
#include <stdarg.h>
+#include <errno.h>
#include "config.h"
@@ -78,7 +79,6 @@ int test_only = FALSE; /* test only */
extern char *optarg; /* getopt(3) control vars */
extern int optind, opterr;
-extern int errno;
char *progname; /* for error() */
diff --git a/c/build-tools/src/cklength.c b/c/build-tools/src/cklength.c
index 4b712a1d63..624bf25e70 100644
--- a/c/build-tools/src/cklength.c
+++ b/c/build-tools/src/cklength.c
@@ -34,6 +34,7 @@ maximum line length. The default maximum line length is 80.\n\
#include <string.h>
#include <memory.h>
#include <stdarg.h>
+#include <errno.h>
#include "config.h"
@@ -85,7 +86,6 @@ int line_length = 80; /* maximum allowable line length */
extern char *optarg; /* getopt(3) control vars */
extern int optind, opterr;
-extern int errno;
char *progname; /* for error() */
diff --git a/c/build-tools/src/eolstrip.c b/c/build-tools/src/eolstrip.c
index 467b352322..c944ae6663 100644
--- a/c/build-tools/src/eolstrip.c
+++ b/c/build-tools/src/eolstrip.c
@@ -29,6 +29,7 @@ Strip the white space from the end of every line on the list of files.\n\
#include <string.h>
#include <memory.h>
#include <stdarg.h>
+#include <errno.h>
#include "config.h"
@@ -78,7 +79,6 @@ int test_only = FALSE; /* test only */
extern char *optarg; /* getopt(3) control vars */
extern int optind, opterr;
-extern int errno;
char *progname; /* for error() */
diff --git a/c/build-tools/src/unhex.c b/c/build-tools/src/unhex.c
index d9a4beb861..6a75a13ae7 100644
--- a/c/build-tools/src/unhex.c
+++ b/c/build-tools/src/unhex.c
@@ -37,6 +37,7 @@ usage: unhex [-va] [ -o file ] [ file [file ... ] ]\n\
#include <unistd.h>
#include <stdlib.h>
#include <stdarg.h>
+#include <errno.h>
#include "config.h"
@@ -96,7 +97,6 @@ u32 FFfill = 0L; /* how far to fill w 0xFF's */
extern char *optarg; /* getopt(3) control vars */
extern int optind;
-extern int errno;
char *progname; /* for error() */
diff --git a/c/build-tools/unhex.c b/c/build-tools/unhex.c
index d9a4beb861..6a75a13ae7 100644
--- a/c/build-tools/unhex.c
+++ b/c/build-tools/unhex.c
@@ -37,6 +37,7 @@ usage: unhex [-va] [ -o file ] [ file [file ... ] ]\n\
#include <unistd.h>
#include <stdlib.h>
#include <stdarg.h>
+#include <errno.h>
#include "config.h"
@@ -96,7 +97,6 @@ u32 FFfill = 0L; /* how far to fill w 0xFF's */
extern char *optarg; /* getopt(3) control vars */
extern int optind;
-extern int errno;
char *progname; /* for error() */
diff --git a/tools/build/cklength.c b/tools/build/cklength.c
index 4b712a1d63..624bf25e70 100644
--- a/tools/build/cklength.c
+++ b/tools/build/cklength.c
@@ -34,6 +34,7 @@ maximum line length. The default maximum line length is 80.\n\
#include <string.h>
#include <memory.h>
#include <stdarg.h>
+#include <errno.h>
#include "config.h"
@@ -85,7 +86,6 @@ int line_length = 80; /* maximum allowable line length */
extern char *optarg; /* getopt(3) control vars */
extern int optind, opterr;
-extern int errno;
char *progname; /* for error() */
diff --git a/tools/build/eolstrip.c b/tools/build/eolstrip.c
index 467b352322..c944ae6663 100644
--- a/tools/build/eolstrip.c
+++ b/tools/build/eolstrip.c
@@ -29,6 +29,7 @@ Strip the white space from the end of every line on the list of files.\n\
#include <string.h>
#include <memory.h>
#include <stdarg.h>
+#include <errno.h>
#include "config.h"
@@ -78,7 +79,6 @@ int test_only = FALSE; /* test only */
extern char *optarg; /* getopt(3) control vars */
extern int optind, opterr;
-extern int errno;
char *progname; /* for error() */
diff --git a/tools/build/src/cklength.c b/tools/build/src/cklength.c
index 4b712a1d63..624bf25e70 100644
--- a/tools/build/src/cklength.c
+++ b/tools/build/src/cklength.c
@@ -34,6 +34,7 @@ maximum line length. The default maximum line length is 80.\n\
#include <string.h>
#include <memory.h>
#include <stdarg.h>
+#include <errno.h>
#include "config.h"
@@ -85,7 +86,6 @@ int line_length = 80; /* maximum allowable line length */
extern char *optarg; /* getopt(3) control vars */
extern int optind, opterr;
-extern int errno;
char *progname; /* for error() */
diff --git a/tools/build/src/eolstrip.c b/tools/build/src/eolstrip.c
index 467b352322..c944ae6663 100644
--- a/tools/build/src/eolstrip.c
+++ b/tools/build/src/eolstrip.c
@@ -29,6 +29,7 @@ Strip the white space from the end of every line on the list of files.\n\
#include <string.h>
#include <memory.h>
#include <stdarg.h>
+#include <errno.h>
#include "config.h"
@@ -78,7 +79,6 @@ int test_only = FALSE; /* test only */
extern char *optarg; /* getopt(3) control vars */
extern int optind, opterr;
-extern int errno;
char *progname; /* for error() */
diff --git a/tools/build/src/unhex.c b/tools/build/src/unhex.c
index d9a4beb861..6a75a13ae7 100644
--- a/tools/build/src/unhex.c
+++ b/tools/build/src/unhex.c
@@ -37,6 +37,7 @@ usage: unhex [-va] [ -o file ] [ file [file ... ] ]\n\
#include <unistd.h>
#include <stdlib.h>
#include <stdarg.h>
+#include <errno.h>
#include "config.h"
@@ -96,7 +97,6 @@ u32 FFfill = 0L; /* how far to fill w 0xFF's */
extern char *optarg; /* getopt(3) control vars */
extern int optind;
-extern int errno;
char *progname; /* for error() */
diff --git a/tools/build/unhex.c b/tools/build/unhex.c
index d9a4beb861..6a75a13ae7 100644
--- a/tools/build/unhex.c
+++ b/tools/build/unhex.c
@@ -37,6 +37,7 @@ usage: unhex [-va] [ -o file ] [ file [file ... ] ]\n\
#include <unistd.h>
#include <stdlib.h>
#include <stdarg.h>
+#include <errno.h>
#include "config.h"
@@ -96,7 +97,6 @@ u32 FFfill = 0L; /* how far to fill w 0xFF's */
extern char *optarg; /* getopt(3) control vars */
extern int optind;
-extern int errno;
char *progname; /* for error() */