wg-quick: android: remove compat code

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld 2018-07-24 18:05:33 +02:00
parent f621f36800
commit 544d965d5f

View file

@ -38,16 +38,6 @@
static bool is_exiting = false; static bool is_exiting = false;
#if defined(__ANDROID_API__) && __ANDROID_API__ < 24
static char *strchrnul(const char *s, int c)
{
char *x = strchr(s, c);
if (!x)
return (char *)s + strlen(s);
return x;
}
#endif
static void *xmalloc(size_t size) static void *xmalloc(size_t size)
{ {
void *ret = malloc(size); void *ret = malloc(size);