From ce96fe8cf587c00a4b58f93c47cb429b557590ca Mon Sep 17 00:00:00 2001 From: Dmitri Tikhonov Date: Wed, 21 Oct 2020 11:37:44 -0400 Subject: [PATCH] Remove strndup definition from http_client (not used) --- bin/http_client.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/bin/http_client.c b/bin/http_client.c index f793cb5..0320a01 100644 --- a/bin/http_client.c +++ b/bin/http_client.c @@ -144,23 +144,6 @@ calc_sample_stats (const struct sample_stats *stats, } -#ifdef WIN32 -static char * -strndup(const char *s, size_t n) -{ - char *copy; - - copy = malloc(n + 1); - if (copy) - { - memcpy(copy, s, n); - copy[n] = '\0'; - } - - return copy; -} -#endif - /* When more than `nread' bytes are read from stream `stream_id', apply * priority in `ehp'. */