aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>1999-01-09 20:59:12 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>1999-01-09 20:59:12 +0000
commited35cf6e8b440c4dc85cea3a5f4f06adcad2632e (patch)
tree98f3fbe3bd1c9aafddbd04dfef72c85dca9b8640 /gcc/gcc.c
parent22d9f2cfb40666b8170c5c549cac7a328297c3c6 (diff)
downloadgcc-ed35cf6e8b440c4dc85cea3a5f4f06adcad2632e.zip
gcc-ed35cf6e8b440c4dc85cea3a5f4f06adcad2632e.tar.gz
gcc-ed35cf6e8b440c4dc85cea3a5f4f06adcad2632e.tar.bz2
gcc.c (xstrerror): Renamed from my_strerror.
* gcc.c (xstrerror): Renamed from my_strerror. All callers changed. Remove prototype since we get that from libiberty.h. * protoize.c (xstrerror): Likewise. From-SVN: r24605
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r--gcc/gcc.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 2b5f971..03bfa1f 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -74,8 +74,6 @@ static char dir_separator_str[] = {DIR_SEPARATOR, 0};
#define GET_ENV_PATH_LIST(VAR,NAME) do { (VAR) = getenv (NAME); } while (0)
#endif
-extern char *my_strerror PROTO((int));
-
#ifndef HAVE_KILL
#define kill(p,s) raise(s)
#endif
@@ -1032,7 +1030,7 @@ translate_options (argcp, argvp)
}
char *
-my_strerror(e)
+xstrerror(e)
int e;
{
#ifdef HAVE_STRERROR
@@ -5247,14 +5245,14 @@ static void
pfatal_with_name (name)
char *name;
{
- fatal ("%s: %s", name, my_strerror (errno));
+ fatal ("%s: %s", name, xstrerror (errno));
}
static void
perror_with_name (name)
char *name;
{
- error ("%s: %s", name, my_strerror (errno));
+ error ("%s: %s", name, xstrerror (errno));
}
static void
@@ -5272,7 +5270,7 @@ pfatal_pexecute (errmsg_fmt, errmsg_arg)
errmsg_fmt = msg;
}
- fatal ("%s: %s", errmsg_fmt, my_strerror (save_errno));
+ fatal ("%s: %s", errmsg_fmt, xstrerror (save_errno));
}
/* More 'friendly' abort that prints the line and file.