diff options
Diffstat (limited to 'sys-devel/gcc-config/files/wrapper-1.4.2.c')
-rw-r--r-- | sys-devel/gcc-config/files/wrapper-1.4.2.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys-devel/gcc-config/files/wrapper-1.4.2.c b/sys-devel/gcc-config/files/wrapper-1.4.2.c index be54f3ba07a6..8269f3ab4d09 100644 --- a/sys-devel/gcc-config/files/wrapper-1.4.2.c +++ b/sys-devel/gcc-config/files/wrapper-1.4.2.c @@ -1,8 +1,8 @@ /* - * Copyright 1999-2003 Gentoo Technologies, Inc. + * Copyright 1999-2004 Gentoo Foundation * Distributed under the terms of the GNU General Public License v2 + * $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/files/wrapper-1.4.2.c,v 1.3 2004/08/19 15:16:25 vapier Exp $ * Author: Martin Schlemmer <azarah@gentoo.org> - * $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc-config/files/wrapper-1.4.2.c,v 1.2 2004/07/18 04:44:54 dragonheart Exp $ */ #define _REENTRANT @@ -46,6 +46,7 @@ static const char *wrapper_strerror(int err, struct wrapper_data *data) static void wrapper_exit(char *msg, ...) { va_list args; + fprintf(stderr, "gcc-config error: "); va_start(args, msg); vfprintf(stderr, msg, args); va_end(args); @@ -200,7 +201,7 @@ static void find_wrapper_target(struct wrapper_data *data) #endif if (NULL == inpipe) wrapper_exit( - "Could not open pipe for gcc-config: %s\n", + "Could not open pipe: %s\n", wrapper_strerror(errno, data)); if (0 == fgets(str, MAXPATHLEN, inpipe)) @@ -250,7 +251,7 @@ static void modify_path(struct wrapper_data *data) newpath = (char *)malloc(len); if (NULL == newpath) - wrapper_exit("wrapper: out of memory\n"); + wrapper_exit("out of memory\n"); memset(newpath, 0, len); snprintf(newpath, len, "%s:%s", dname, data->path); @@ -311,4 +312,3 @@ int main(int argc, char **argv) return 0; } - |