diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-01-09 20:59:12 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-01-09 20:59:12 +0000 |
commit | 99e61852f91970f5efa2988f61e2f63e9b2f9d08 (patch) | |
tree | 98f3fbe3bd1c9aafddbd04dfef72c85dca9b8640 /gcc/gcc.c | |
parent | 9d4072d85575e868a37a0134512fda4bc1cfc801 (diff) | |
download | ppe42-gcc-99e61852f91970f5efa2988f61e2f63e9b2f9d08.tar.gz ppe42-gcc-99e61852f91970f5efa2988f61e2f63e9b2f9d08.zip |
* gcc.c (xstrerror): Renamed from my_strerror. All callers
changed. Remove prototype since we get that from libiberty.h.
* protoize.c (xstrerror): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@24605 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r-- | gcc/gcc.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c index 2b5f971bc91..03bfa1f86da 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. |