diff cdbtest.c @ 13:0a35d8de4296

support profiling with gprof
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Fri, 07 Feb 2025 14:43:27 +0000
parents 978eaa166609
children
line wrap: on
line diff
--- a/cdbtest.c	Mon Feb 03 17:31:23 2025 +0000
+++ b/cdbtest.c	Fri Feb 07 14:43:27 2025 +0000
@@ -5,6 +5,7 @@
 #include "seek.h"
 #include "str.h"
 #include "cdb.h"
+#include <stdlib.h>
 
 #define FATAL "cdbtest: fatal: "
 
@@ -116,5 +117,5 @@
   putnum("not found: ",numnotfound);
   putnum("untested: ",numuntested);
   putflush();
-  _exit(0);
+  exit(0);
 }