diff options
author | mjn3 <mjn3@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2004-03-19 23:27:08 +0000 |
---|---|---|
committer | mjn3 <mjn3@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2004-03-19 23:27:08 +0000 |
commit | cf8ffa066a073da2e19685cda10243e9ce426c75 (patch) | |
tree | e43c55257b47667c9f92d193b69a3557ae52de2e | |
parent | 04d154a976717860638d2e44d6bd6cbd21b996a5 (diff) | |
download | busybox-w32-cf8ffa066a073da2e19685cda10243e9ce426c75.tar.gz busybox-w32-cf8ffa066a073da2e19685cda10243e9ce426c75.tar.bz2 busybox-w32-cf8ffa066a073da2e19685cda10243e9ce426c75.zip |
Oops.. got a bit to aggressive with size optimization and global replace. :-(
git-svn-id: svn://busybox.net/trunk/busybox@8651 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r-- | networking/route.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/networking/route.c b/networking/route.c index 9e7a01034..5c092f452 100644 --- a/networking/route.c +++ b/networking/route.c | |||
@@ -15,7 +15,7 @@ | |||
15 | * Foundation; either version 2 of the License, or (at | 15 | * Foundation; either version 2 of the License, or (at |
16 | * your option) any later version. | 16 | * your option) any later version. |
17 | * | 17 | * |
18 | * $Id: route.c,v 1.25 2004/03/15 08:28:49 andersen Exp $ | 18 | * $Id: route.c,v 1.26 2004/03/19 23:27:08 mjn3 Exp $ |
19 | * | 19 | * |
20 | * displayroute() code added by Vladimir N. Oleynik <dzo@simtreas.ru> | 20 | * displayroute() code added by Vladimir N. Oleynik <dzo@simtreas.ru> |
21 | * adjustments by Larry Doolittle <LRDoolittle@lbl.gov> | 21 | * adjustments by Larry Doolittle <LRDoolittle@lbl.gov> |
@@ -282,7 +282,8 @@ static void INET_setroute(int action, char **args) | |||
282 | /* Device is special in that it can be the last arg specified | 282 | /* Device is special in that it can be the last arg specified |
283 | * and doesn't requre the dev/device keyword in that case. */ | 283 | * and doesn't requre the dev/device keyword in that case. */ |
284 | if (!rt.rt_dev && ((k == KW_IPVx_DEVICE) || (!k && !*++args))) { | 284 | if (!rt.rt_dev && ((k == KW_IPVx_DEVICE) || (!k && !*++args))) { |
285 | rt.rt_dev = (char *) args_m1; | 285 | /* Don't use args_m1 here since args may have changed! */ |
286 | rt.rt_dev = args[-1]; | ||
286 | continue; | 287 | continue; |
287 | } | 288 | } |
288 | 289 | ||
@@ -407,7 +408,8 @@ static void INET6_setroute(int action, char **args) | |||
407 | /* Device is special in that it can be the last arg specified | 408 | /* Device is special in that it can be the last arg specified |
408 | * and doesn't requre the dev/device keyword in that case. */ | 409 | * and doesn't requre the dev/device keyword in that case. */ |
409 | if (!devname && ((k == KW_IPVx_DEVICE) || (!k && !*++args))) { | 410 | if (!devname && ((k == KW_IPVx_DEVICE) || (!k && !*++args))) { |
410 | devname = args_m1; | 411 | /* Don't use args_m1 here since args may have changed! */ |
412 | devname = args[-1]; | ||
411 | continue; | 413 | continue; |
412 | } | 414 | } |
413 | 415 | ||