summaryrefslogtreecommitdiffstats
path: root/usr.bin/gprof/printlist.c
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>1997-07-10 06:45:02 +0000
committercharnier <charnier@FreeBSD.org>1997-07-10 06:45:02 +0000
commit3e5d2f9ca56d4333f70c1ca8d3b4c882ace01e89 (patch)
tree54a9925733c8cac2abef93a67a8af5379fe30126 /usr.bin/gprof/printlist.c
parentfecd0ac4cdef9377593fc851182a346a94294b0e (diff)
downloadFreeBSD-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.c7
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;
OpenPOWER on IntegriCloud