Skip to content

Commit

Permalink
Remove strndup definition from http_client (not used)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitri Tikhonov committed Oct 21, 2020
1 parent 25332c1 commit ce96fe8
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions bin/http_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -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'.
*/
Expand Down

0 comments on commit ce96fe8

Please sign in to comment.