Changeset 10326


Ignore:
Timestamp:
2008-01-30T12:45:42+01:00 (10 years ago)
Author:
juhosg
Message:

[kernel] netfilter: fix compiler warnings in xt_layer7

Location:
trunk/target/linux/generic-2.6
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/generic-2.6/patches-2.6.23/100-netfilter_layer7_2.17.patch

    r9806 r10326  
    439439+} 
    440440+ 
    441 +static int 
     441+static bool 
    442442+match(const struct sk_buff *skbin, 
    443443+      const struct net_device *in, 
     
    447447+      int offset, 
    448448+      unsigned int protoff, 
    449 +      int *hotdrop) 
     449+      bool *hotdrop) 
    450450+{ 
    451451+       /* sidestep const without getting a compiler warning... */ 
     
    591591+} 
    592592+ 
    593 +static int check(const char *tablename, 
     593+static bool check(const char *tablename, 
    594594+                const void *inf, 
    595595+                const struct xt_match *match, 
     
    602602+                printk(KERN_WARNING "can't load conntrack support for " 
    603603+                                    "proto=%d\n", match->family); 
    604 +                return 0; 
     604+                return false; 
    605605+        } 
    606 +       return 1; 
     606+       return true; 
    607607+} 
    608608+ 
  • trunk/target/linux/generic-2.6/patches-2.6.24/100-netfilter_layer7_2.17.patch

    r10291 r10326  
    439439+} 
    440440+ 
    441 +static int 
     441+static bool 
    442442+match(const struct sk_buff *skbin, 
    443443+      const struct net_device *in, 
     
    447447+      int offset, 
    448448+      unsigned int protoff, 
    449 +      int *hotdrop) 
     449+      bool *hotdrop) 
    450450+{ 
    451451+       /* sidestep const without getting a compiler warning... */ 
     
    591591+} 
    592592+ 
    593 +static int check(const char *tablename, 
     593+static bool check(const char *tablename, 
    594594+                const void *inf, 
    595595+                const struct xt_match *match, 
     
    602602+                printk(KERN_WARNING "can't load conntrack support for " 
    603603+                                    "proto=%d\n", match->family); 
    604 +                return 0; 
     604+                return false; 
    605605+        } 
    606 +       return 1; 
     606+       return true; 
    607607+} 
    608608+ 
Note: See TracChangeset for help on using the changeset viewer.