]> granicus.if.org Git - ipset/commitdiff
The module parameter max_sets should be unsigned int
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Thu, 20 Jan 2011 09:26:44 +0000 (10:26 +0100)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Thu, 20 Jan 2011 09:26:44 +0000 (10:26 +0100)
Negative set numbers are strange :-) (Patrick McHardy's review)

kernel/ip_set_core.c

index 9761487b03f34071454804859209795595cfbea6..ebd37fa5baab6b1e8cd5753a6ea0652adc95175d 100644 (file)
@@ -31,7 +31,7 @@ static ip_set_id_t ip_set_max = CONFIG_IP_SET_MAX; /* max number of sets */
 
 #define STREQ(a, b)    (strncmp(a, b, IPSET_MAXNAMELEN) == 0)
 
-static int max_sets;
+static unsigned int max_sets;
 
 module_param(max_sets, int, 0600);
 MODULE_PARM_DESC(max_sets, "maximal number of sets");