summaryrefslogtreecommitdiffstats
path: root/usr.bin/gprof/printlist.c
diff options
context:
space:
mode:
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