Date: Sat, 15 Apr 2006 23:58:29 GMT From: John Birrell <jb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 95371 for review Message-ID: <200604152358.k3FNwT2L073364@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=95371 Change 95371 by jb@jb_freebsd2 on 2006/04/15 23:58:05 Use getprogname() to get the program name rather than some mysterious external pointer. Affected files ... .. //depot/projects/dtrace/src/contrib/opensolaris/cmd/mdb/tools/common/die.c#2 edit .. //depot/projects/dtrace/src/contrib/opensolaris/cmd/mdb/tools/common/util.h#1 branch Differences ... ==== //depot/projects/dtrace/src/contrib/opensolaris/cmd/mdb/tools/common/die.c#2 (text) ==== @@ -40,6 +40,9 @@ { va_list ap; int err = errno; +#if !defined(sun) + const char *progname = getprogname(); +#endif (void) fprintf(stderr, "%s: ", progname); @@ -58,6 +61,9 @@ elfdie(char *format, ...) { va_list ap; +#if !defined(sun) + const char *progname = getprogname(); +#endif (void) fprintf(stderr, "%s: ", progname);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604152358.k3FNwT2L073364>