Re: rev 244030 route command is not working
--VdOwlNaOFKGAtAAV
Content-Type: text/plain; charset=koi8-r
Content-Disposition: inline
On Tue, Dec 11, 2012 at 12:21:20PM +0200, Artyom Mirgorodskiy wrote:
A> Gleb, when I reset errno at the begin of fiboptlist_csv() everything work as expected.
Artyom,
can you please test attached patch?
--
Totus tuus, Glebius.
--VdOwlNaOFKGAtAAV
Content-Type: text/x-diff; charset=koi8-r
Content-Disposition: attachment; filename="route.c.diff"
Index: route.c
===================================================================
--- route.c (revision 244082)
+++ route.c (working copy)
@@ -271,8 +271,7 @@
case 0:
case 1:
fib[i] = strtol(token, &endptr, 0);
- if (*endptr != '\0' || (fib[i] == 0 &&
- (errno == EINVAL || errno == ERANGE)))
+ if (*endptr != '\0')
error = 1;
break;
default:
@@ -336,8 +335,7 @@
goto fiboptlist_csv_ret;
} else {
fib = strtol(token, &endptr, 0);
- if (*endptr != '\0' || (fib == 0 &&
- (errno == EINVAL || errno == ERANGE))) {
+ if (*endptr != '\0') {
error = 1;
goto fiboptlist_csv_ret;
}
--VdOwlNaOFKGAtAAV
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
--VdOwlNaOFKGAtAAV--
討論串 (同標題文章)
完整討論串 (本文為第 9 之 10 篇):