Author: marek Date: 2010-01-23 09:08:03 +0100 (Sat, 23 Jan 2010) New Revision: 1562
Modified: trunk/batman-adv-kernelland/gateway_common.c Log: batman-adv: gateway class is an unsigned value - treat it as such
Signed-off-by: Marek Lindner lindner_marek@yahoo.de
Modified: trunk/batman-adv-kernelland/gateway_common.c =================================================================== --- trunk/batman-adv-kernelland/gateway_common.c 2010-01-23 05:12:19 UTC (rev 1561) +++ trunk/batman-adv-kernelland/gateway_common.c 2010-01-23 08:08:03 UTC (rev 1562) @@ -85,7 +85,7 @@
switch (*gw_mode_tmp) { case GW_MODE_CLIENT: - ret = strict_strtol(tokptr, 10, gw_clnt_class_tmp); + ret = strict_strtoul(tokptr, 10, gw_clnt_class_tmp); if (ret) { printk(KERN_ERR "Client class of gateway mode invalid: %s\n", tokptr); @@ -104,7 +104,7 @@ if (slash_ptr) *slash_ptr = 0;
- ret = strict_strtol(tokptr, 10, down); + ret = strict_strtoul(tokptr, 10, down); if (ret) { printk(KERN_ERR "Download speed of gateway mode invalid: %s\n", tokptr); @@ -121,7 +121,7 @@
/* we also got some upload info */ if (slash_ptr) { - ret = strict_strtol(slash_ptr + 1, 10, up); + ret = strict_strtoul(slash_ptr + 1, 10, up); if (ret) { printk(KERN_ERR "Upload speed of gateway mode invalid: %s\n", slash_ptr + 1);