X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/0a7de7458d150b5d4dffc935ba399be265ef0a1a..a991bd8d3e7fe02dbca0644054bab73c5b75324a:/bsd/net/pf_ruleset.c?ds=inline diff --git a/bsd/net/pf_ruleset.c b/bsd/net/pf_ruleset.c index 4b3be609a..b802c11bb 100644 --- a/bsd/net/pf_ruleset.c +++ b/bsd/net/pf_ruleset.c @@ -83,9 +83,7 @@ #include #include -#if INET6 #include -#endif /* INET6 */ #ifdef KERNEL @@ -94,23 +92,6 @@ printf(format, ##x) #define rs_malloc(x) _MALLOC(x, M_TEMP, M_WAITOK) #define rs_free(x) _FREE(x, M_TEMP) -#define strrchr _strrchr - -static char * -_strrchr(const char *c, int ch) -{ - char *p = (char *)(size_t)c, *save; - - for (save = NULL;; ++p) { - if (*p == ch) { - save = (char *)p; - } - if (*p == '\0') { - return save; - } - } - /* NOTREACHED */ -} #else /* Userland equivalents so we can lend code to pfctl et al. */