Changeset 1562

Show
Ignore:
Timestamp:
01/23/10 09:08:03 (8 months ago)
Author:
marek
Message:

batman-adv: gateway class is an unsigned value - treat it as such

Signed-off-by: Marek Lindner <lindner_marek@…>

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/batman-adv-kernelland/gateway_common.c

    r1553 r1562  
    8686        switch (*gw_mode_tmp) { 
    8787        case GW_MODE_CLIENT: 
    88                 ret = strict_strtol(tokptr, 10, gw_clnt_class_tmp); 
     88                ret = strict_strtoul(tokptr, 10, gw_clnt_class_tmp); 
    8989                if (ret) { 
    9090                        printk(KERN_ERR "Client class of gateway mode invalid: %s\n", 
     
    105105                        *slash_ptr = 0; 
    106106 
    107                 ret = strict_strtol(tokptr, 10, down); 
     107                ret = strict_strtoul(tokptr, 10, down); 
    108108                if (ret) { 
    109109                        printk(KERN_ERR "Download speed of gateway mode invalid: %s\n", 
     
    122122                /* we also got some upload info */ 
    123123                if (slash_ptr) { 
    124                         ret = strict_strtol(slash_ptr + 1, 10, up); 
     124                        ret = strict_strtoul(slash_ptr + 1, 10, up); 
    125125                        if (ret) { 
    126126                                printk(KERN_ERR "Upload speed of gateway mode invalid: %s\n",