iptables: update to 1.8.8
[openwrt/openwrt.git] / package / network / utils / iptables / patches / 102-iptables-disable-modprobe.patch
index b8e19c781a1ba37534fed09ade8194e72f495f8a..710f481cac8ce3c6512a9fd962c8ec561e2a6401 100644 (file)
@@ -1,6 +1,15 @@
 --- a/libxtables/xtables.c
 +++ b/libxtables/xtables.c
-@@ -403,6 +403,7 @@ static char *get_modprobe(void)
+@@ -476,7 +476,7 @@ char *xtables_strdup(const char *s)
+       return dup;
+ }
+-static char *get_modprobe(void)
++__attribute__((unused)) static char *get_modprobe(void)
+ {
+       int procfile;
+       char *ret;
+@@ -511,6 +511,7 @@ static char *get_modprobe(void)
  
  int xtables_insmod(const char *modname, const char *modprobe, bool quiet)
  {
@@ -8,7 +17,7 @@
        char *buf = NULL;
        char *argv[4];
        int status;
-@@ -437,6 +438,7 @@ int xtables_insmod(const char *modname,
+@@ -545,6 +546,7 @@ int xtables_insmod(const char *modname,
        free(buf);
        if (WIFEXITED(status) && WEXITSTATUS(status) == 0)
                return 0;