mirror of
https://gitea.invidious.io/iv-org/litespeed-quic.git
synced 2024-08-15 00:53:43 +00:00
Remove strndup definition from http_client (not used)
This commit is contained in:
parent
25332c1253
commit
ce96fe8cf5
1 changed files with 0 additions and 17 deletions
|
@ -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'.
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue