summaryrefslogtreecommitdiffstats
path: root/tools/build
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1996-01-15 21:50:28 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1996-01-15 21:50:28 +0000
commitc64e4ed48285a0c944905bc02de89c20038f428b (patch)
tree7804e08b98cb9e6b9ac4de5e010c6fb70f9a011b /tools/build
parent5c491aef41558df022032b543d826ef4e49493b5 (diff)
downloadrtems-c64e4ed48285a0c944905bc02de89c20038f428b.tar.bz2
updates from Tony Bennett for PA and UNIX ports
Diffstat (limited to 'tools/build')
-rw-r--r--tools/build/cklength.c17
-rw-r--r--tools/build/eolstrip.c17
-rw-r--r--tools/build/src/cklength.c17
-rw-r--r--tools/build/src/eolstrip.c17
-rw-r--r--tools/build/src/unhex.c4
-rw-r--r--tools/build/unhex.c4
6 files changed, 12 insertions, 64 deletions
diff --git a/tools/build/cklength.c b/tools/build/cklength.c
index 0849b9bbf8..6059cacb1f 100644
--- a/tools/build/cklength.c
+++ b/tools/build/cklength.c
@@ -10,19 +10,6 @@
* -v -- verbose
*
* $Id$
- * $Log$
- * Revision 1.4 1995/10/06 20:00:38 joel
- * SPARC merged and successfully tested w/o interrupt support
- *
- * Revision 1.3 1995/10/06 16:32:20 joel
- * moved to new development machine and went to gcc 2.7.0
- *
- * Revision 1.2 1995/05/31 16:44:26 joel
- * fixing revision
- *
- * Revision 1.1.1.1 1995/05/11 17:35:11 joel
- * Release 3.1.15
- *
*/
#define GETOPTARGS "l:nNv"
@@ -274,8 +261,8 @@ error(int error_flag, ...)
{
if (error_flag & ERR_FATAL)
{
- error(0, local_errno ? "fatal error, exiting" : "exiting");
- exit(local_errno);
+ error(0, "fatal error, exiting");
+ exit(local_errno ? local_errno : 1);
}
else
{
diff --git a/tools/build/eolstrip.c b/tools/build/eolstrip.c
index e258fcd9be..b4e0d5d165 100644
--- a/tools/build/eolstrip.c
+++ b/tools/build/eolstrip.c
@@ -8,19 +8,6 @@
* -v -- verbose
*
* $Id$
- * $Log$
- * Revision 1.4 1995/10/06 20:00:39 joel
- * SPARC merged and successfully tested w/o interrupt support
- *
- * Revision 1.3 1995/10/06 16:32:21 joel
- * moved to new development machine and went to gcc 2.7.0
- *
- * Revision 1.2 1995/05/31 16:44:28 joel
- * fixing revision
- *
- * Revision 1.1.1.1 1995/05/11 17:35:12 joel
- * Release 3.1.15
- *
*/
#define GETOPTARGS "vt"
@@ -261,8 +248,8 @@ error(int error_flag, ...)
{
if (error_flag & ERR_FATAL)
{
- error(0, local_errno ? "fatal error, exiting" : "exiting");
- exit(local_errno);
+ error(0, "fatal error, exiting");
+ exit(local_errno ? local_errno : 1);
}
else
{
diff --git a/tools/build/src/cklength.c b/tools/build/src/cklength.c
index 0849b9bbf8..6059cacb1f 100644
--- a/tools/build/src/cklength.c
+++ b/tools/build/src/cklength.c
@@ -10,19 +10,6 @@
* -v -- verbose
*
* $Id$
- * $Log$
- * Revision 1.4 1995/10/06 20:00:38 joel
- * SPARC merged and successfully tested w/o interrupt support
- *
- * Revision 1.3 1995/10/06 16:32:20 joel
- * moved to new development machine and went to gcc 2.7.0
- *
- * Revision 1.2 1995/05/31 16:44:26 joel
- * fixing revision
- *
- * Revision 1.1.1.1 1995/05/11 17:35:11 joel
- * Release 3.1.15
- *
*/
#define GETOPTARGS "l:nNv"
@@ -274,8 +261,8 @@ error(int error_flag, ...)
{
if (error_flag & ERR_FATAL)
{
- error(0, local_errno ? "fatal error, exiting" : "exiting");
- exit(local_errno);
+ error(0, "fatal error, exiting");
+ exit(local_errno ? local_errno : 1);
}
else
{
diff --git a/tools/build/src/eolstrip.c b/tools/build/src/eolstrip.c
index e258fcd9be..b4e0d5d165 100644
--- a/tools/build/src/eolstrip.c
+++ b/tools/build/src/eolstrip.c
@@ -8,19 +8,6 @@
* -v -- verbose
*
* $Id$
- * $Log$
- * Revision 1.4 1995/10/06 20:00:39 joel
- * SPARC merged and successfully tested w/o interrupt support
- *
- * Revision 1.3 1995/10/06 16:32:21 joel
- * moved to new development machine and went to gcc 2.7.0
- *
- * Revision 1.2 1995/05/31 16:44:28 joel
- * fixing revision
- *
- * Revision 1.1.1.1 1995/05/11 17:35:12 joel
- * Release 3.1.15
- *
*/
#define GETOPTARGS "vt"
@@ -261,8 +248,8 @@ error(int error_flag, ...)
{
if (error_flag & ERR_FATAL)
{
- error(0, local_errno ? "fatal error, exiting" : "exiting");
- exit(local_errno);
+ error(0, "fatal error, exiting");
+ exit(local_errno ? local_errno : 1);
}
else
{
diff --git a/tools/build/src/unhex.c b/tools/build/src/unhex.c
index 22fbd8bf4c..ba099c4772 100644
--- a/tools/build/src/unhex.c
+++ b/tools/build/src/unhex.c
@@ -708,8 +708,8 @@ error(int error_flag, ...)
{
if (error_flag & ERR_FATAL)
{
- error(0, local_errno ? "fatal error, exiting" : "exiting");
- exit(local_errno);
+ error(0, "fatal error, exiting");
+ exit(local_errno ? local_errno : 1);
}
else
{
diff --git a/tools/build/unhex.c b/tools/build/unhex.c
index 22fbd8bf4c..ba099c4772 100644
--- a/tools/build/unhex.c
+++ b/tools/build/unhex.c
@@ -708,8 +708,8 @@ error(int error_flag, ...)
{
if (error_flag & ERR_FATAL)
{
- error(0, local_errno ? "fatal error, exiting" : "exiting");
- exit(local_errno);
+ error(0, "fatal error, exiting");
+ exit(local_errno ? local_errno : 1);
}
else
{