Skip to content

Commit ce96fe8

Browse files
author
Dmitri Tikhonov
committed
Remove strndup definition from http_client (not used)
1 parent 25332c1 commit ce96fe8

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

bin/http_client.c

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -144,23 +144,6 @@ calc_sample_stats (const struct sample_stats *stats,
144144
}
145145

146146

147-
#ifdef WIN32
148-
static char *
149-
strndup(const char *s, size_t n)
150-
{
151-
char *copy;
152-
153-
copy = malloc(n + 1);
154-
if (copy)
155-
{
156-
memcpy(copy, s, n);
157-
copy[n] = '\0';
158-
}
159-
160-
return copy;
161-
}
162-
#endif
163-
164147
/* When more than `nread' bytes are read from stream `stream_id', apply
165148
* priority in `ehp'.
166149
*/

0 commit comments

Comments
 (0)