1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-12-24 17:51:17 +03:00

Fix benchtests build failure after 'add benchmark for strcoll'

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.
This commit is contained in:
Stefan Liebler
2015-06-19 13:47:59 +02:00
committed by Andreas Krebbel
parent 86fe187471
commit 2419de0720
2 changed files with 7 additions and 3 deletions

View File

@@ -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):

View 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);