From: Jason A. Donenfeld Date: Tue, 24 Jul 2018 16:05:33 +0000 (+0200) Subject: wg-quick: android: remove compat code X-Git-Tag: v1.0.20191226~83 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=544d965d5fd77a4d314690b678f1e9b614ad34bb;p=thirdparty%2Fwireguard-tools.git wg-quick: android: remove compat code Signed-off-by: Jason A. Donenfeld --- diff --git a/src/wg-quick/android.c b/src/wg-quick/android.c index 610e99c..796607d 100644 --- a/src/wg-quick/android.c +++ b/src/wg-quick/android.c @@ -38,16 +38,6 @@ 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);