Remove strndup definition from http_client (not used)

This commit is contained in:
Dmitri Tikhonov 2020-10-21 11:37:44 -04:00
parent 25332c1253
commit ce96fe8cf5
1 changed files with 0 additions and 17 deletions

View File

@ -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'.
*/