]> git.ipfire.org Git - thirdparty/wireguard-tools.git/commitdiff
wg-quick: android: remove compat code
authorJason A. Donenfeld <Jason@zx2c4.com>
Tue, 24 Jul 2018 16:05:33 +0000 (18:05 +0200)
committerJason A. Donenfeld <Jason@zx2c4.com>
Tue, 24 Jul 2018 16:15:17 +0000 (18:15 +0200)
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
src/wg-quick/android.c

index 610e99cf770eef1e93dfd04790f73c9a619eb5ab..796607d0c418061527d426d0bac8ac8775c52500 100644 (file)
 
 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)
 {
        void *ret = malloc(size);