Re: rev 244030 route command is not working

看板FB_current作者時間12年前 (2013/04/27 12:33), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串9/10 (看更多)
--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--
文章代碼(AID): #1HUrK8Bu (FB_current)
討論串 (同標題文章)
文章代碼(AID): #1HUrK8Bu (FB_current)