about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--benchtests/bench-strcoll.c4
2 files changed, 7 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 541eecedb8..7dedfb419a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
 
+	* benchtests/bench-strcoll.c:
+	Include string.h.
+	(main): Remove unused variable res.
+
+2015-06-19  Stefan Liebler  <stli@linux.vnet.ibm.com>
+
 	* timezone/Makefile (%/UTC %/Universal):
 	Generate test-result files for UTC and Universal.
 
diff --git a/benchtests/bench-strcoll.c b/benchtests/bench-strcoll.c
index c3d9a08e1b..ded04a6603 100644
--- a/benchtests/bench-strcoll.c
+++ b/benchtests/bench-strcoll.c
@@ -24,6 +24,7 @@
 #include <unistd.h>
 #include "json-lib.h"
 #include "bench-timing.h"
+#include <string.h>
 
 /* Many thanks to http://generator.lorem-ipsum.info/  */
 #define INPUT_PREFIX "strcoll-inputs/"
@@ -234,9 +235,6 @@ bench_file (json_ctx_t *json_ctx, const char *testname, const char *filename,
 int
 main (void)
 {
-  timing_t res;
-  TIMING_INIT (res);
-
   json_ctx_t *json_ctx = malloc (sizeof (json_ctx_t));
   assert (json_ctx != NULL);
   json_init (json_ctx, 2, stdout);