diff options
author | charnier <charnier@FreeBSD.org> | 1997-07-10 06:45:02 +0000 |
---|---|---|
committer | charnier <charnier@FreeBSD.org> | 1997-07-10 06:45:02 +0000 |
commit | 3e5d2f9ca56d4333f70c1ca8d3b4c882ace01e89 (patch) | |
tree | 54a9925733c8cac2abef93a67a8af5379fe30126 /usr.bin/gprof/printlist.c | |
parent | fecd0ac4cdef9377593fc851182a346a94294b0e (diff) | |
download | FreeBSD-src-3e5d2f9ca56d4333f70c1ca8d3b4c882ace01e89.zip FreeBSD-src-3e5d2f9ca56d4333f70c1ca8d3b4c882ace01e89.tar.gz |
Use err(3).
Diffstat (limited to 'usr.bin/gprof/printlist.c')
-rw-r--r-- | usr.bin/gprof/printlist.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.bin/gprof/printlist.c b/usr.bin/gprof/printlist.c index f29ecc9..15af8e1 100644 --- a/usr.bin/gprof/printlist.c +++ b/usr.bin/gprof/printlist.c @@ -32,9 +32,14 @@ */ #ifndef lint +#if 0 static char sccsid[] = "@(#)printlist.c 8.1 (Berkeley) 6/6/93"; +#endif +static const char rcsid[] = + "$Id$"; #endif /* not lint */ +#include <err.h> #include "gprof.h" /* @@ -64,7 +69,7 @@ addlist( listp , funcname ) slp = (struct stringlist *) malloc( sizeof(struct stringlist)); if ( slp == (struct stringlist *) 0 ) { - fprintf( stderr, "gprof: ran out room for printlist\n" ); + warnx("ran out room for printlist"); done(); } slp -> next = listp -> next; |