]> sourceware.org Git - glibc.git/commitdiff
Fix benchtests build failure after 'add benchmark for strcoll'
authorStefan Liebler <stli@linux.vnet.ibm.com>
Fri, 19 Jun 2015 11:47:59 +0000 (13:47 +0200)
committerAndreas Krebbel <krebbel@linux.vnet.ibm.com>
Fri, 19 Jun 2015 11:47:59 +0000 (13:47 +0200)
This patch fixes implicit declaration of function strdup, strtok,
strcoll, strchr and removes unused variable res.

ChangeLog:

* benchtests/bench-strcoll.c:
Include string.h.
(main): Remove unused variable res.

ChangeLog
benchtests/bench-strcoll.c

index 541eecedb8a78d45d7ddd617ad7bf233ee397ebe..7dedfb419a9abd95059b58a33e7823737d6e8ba7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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):
index c3d9a08e1b12bc90d62b47bfb63a84a4d6d79703..ded04a66034e42598daf801042acbede7a3a8aa2 100644 (file)
@@ -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);
This page took 0.137811 seconds and 5 git commands to generate.