]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
don't use signed things...
authorMartin Josefsson <gandalf@wlug.westbo.se>
Sat, 8 May 2004 14:02:36 +0000 (14:02 +0000)
committerMartin Josefsson <gandalf@wlug.westbo.se>
Sat, 8 May 2004 14:02:36 +0000 (14:02 +0000)
extensions/libipt_connbytes.c

index abc37be033969a42b5c0de1ed9481aea0c4b63eb..28b938f0b53cbbeedf62fe0bc2c49780b85b80a9 100644 (file)
@@ -37,10 +37,10 @@ parse_range(const char *arg, struct ipt_connbytes_info *si)
 {
        char *colon,*p;
 
-       si->from = strtol(arg,&colon,10);
+       si->from = strtoul(arg,&colon,10);
        if (*colon != ':') 
                exit_error(PARAMETER_PROBLEM, "Bad range `%s'", arg);
-       si->to = strtol(colon+1,&p,10);
+       si->to = strtoul(colon+1,&p,10);
        if (p == colon+1) {
                /* second number omited */
                si->to = 0xffffffff;
@@ -58,7 +58,7 @@ parse(int c, char **argv, int invert, unsigned int *flags,
       struct ipt_entry_match **match)
 {
        struct ipt_connbytes_info *sinfo = (struct ipt_connbytes_info *)(*match)->data;
-       int i;
+       unsigned long i;
 
        switch (c) {
        case '1':