diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2006-10-08 12:49:22 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2006-10-08 12:49:22 +0000 |
commit | 1385899416a4396385ad421ae1f532be7103738a (patch) | |
tree | fc4d14a910593d1235318bb36abe5e9f72d2039e /networking/vconfig.c | |
parent | 5625415085e68ac5e150f54e685417c866620d76 (diff) | |
download | busybox-w32-1385899416a4396385ad421ae1f532be7103738a.tar.gz busybox-w32-1385899416a4396385ad421ae1f532be7103738a.tar.bz2 busybox-w32-1385899416a4396385ad421ae1f532be7103738a.zip |
attempt to regularize atoi mess.
Diffstat (limited to 'networking/vconfig.c')
-rw-r--r-- | networking/vconfig.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/networking/vconfig.c b/networking/vconfig.c index 6c808eb2f..003c1a8f7 100644 --- a/networking/vconfig.c +++ b/networking/vconfig.c | |||
@@ -144,14 +144,14 @@ int vconfig_main(int argc, char **argv) | |||
144 | * doing so wouldn't save that much space and would also make maintainence | 144 | * doing so wouldn't save that much space and would also make maintainence |
145 | * more of a pain. */ | 145 | * more of a pain. */ |
146 | if (ifr.cmd == SET_VLAN_FLAG_CMD) { /* set_flag */ | 146 | if (ifr.cmd == SET_VLAN_FLAG_CMD) { /* set_flag */ |
147 | ifr.u.flag = bb_xgetularg10_bnd(p, 0, 1); | 147 | ifr.u.flag = xatoul_range(p, 0, 1); |
148 | /* DM: in order to set reorder header, qos must be set */ | 148 | /* DM: in order to set reorder header, qos must be set */ |
149 | ifr.vlan_qos = bb_xgetularg10_bnd(argv[3], 0, 7); | 149 | ifr.vlan_qos = xatoul_range(argv[3], 0, 7); |
150 | } else if (ifr.cmd == ADD_VLAN_CMD) { /* add */ | 150 | } else if (ifr.cmd == ADD_VLAN_CMD) { /* add */ |
151 | ifr.u.VID = bb_xgetularg10_bnd(p, 0, VLAN_GROUP_ARRAY_LEN-1); | 151 | ifr.u.VID = xatoul_range(p, 0, VLAN_GROUP_ARRAY_LEN-1); |
152 | } else if (ifr.cmd != DEL_VLAN_CMD) { /* set_{egress|ingress}_map */ | 152 | } else if (ifr.cmd != DEL_VLAN_CMD) { /* set_{egress|ingress}_map */ |
153 | ifr.u.skb_priority = bb_xgetularg10_bnd(p, 0, ULONG_MAX); | 153 | ifr.u.skb_priority = xatou(p); |
154 | ifr.vlan_qos = bb_xgetularg10_bnd(argv[3], 0, 7); | 154 | ifr.vlan_qos = xatoul_range(argv[3], 0, 7); |
155 | } | 155 | } |
156 | } | 156 | } |
157 | 157 | ||