diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-07-12 09:20:44 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-07-12 09:20:44 +0000 |
commit | a46dd89e9451ec73a4df54427110cdfc28d8b031 (patch) | |
tree | 2e470b3c0236524905a6d399c5207cccaef2fc7b /networking | |
parent | 39acf453353a41a78fbc220360e884eb0eb33a59 (diff) | |
download | busybox-w32-a46dd89e9451ec73a4df54427110cdfc28d8b031.tar.gz busybox-w32-a46dd89e9451ec73a4df54427110cdfc28d8b031.tar.bz2 busybox-w32-a46dd89e9451ec73a4df54427110cdfc28d8b031.zip |
cpio: internalize archive_xread_all_eof. add a few paranoia checks
for corrupted cpio files.
modprobe-small: remove stray include
route: small code shrink
function old new delta
get_header_cpio 958 980 +22
archive_xread_all_eof 33 - -33
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 1/0 up/down: 22/-33) Total: -11 bytes
Diffstat (limited to 'networking')
-rw-r--r-- | networking/route.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/route.c b/networking/route.c index f467ed3fd..7b6d4f45f 100644 --- a/networking/route.c +++ b/networking/route.c | |||
@@ -561,8 +561,8 @@ static void INET6_displayroutes(void) | |||
561 | while (1) { | 561 | while (1) { |
562 | int r; | 562 | int r; |
563 | r = fscanf(fp, "%32s%x%*s%x%32s%x%x%x%x%s\n", | 563 | r = fscanf(fp, "%32s%x%*s%x%32s%x%x%x%x%s\n", |
564 | addr6x+14, &prefix_len, &slen, addr6x+40+7, | 564 | addr6x+14, &prefix_len, &slen, addr6x+40+7, |
565 | &metric, &use, &refcnt, &iflags, iface); | 565 | &metric, &use, &refcnt, &iflags, iface); |
566 | if (r != 9) { | 566 | if (r != 9) { |
567 | if ((r < 0) && feof(fp)) { /* EOF with no (nonspace) chars read. */ | 567 | if ((r < 0) && feof(fp)) { /* EOF with no (nonspace) chars read. */ |
568 | break; | 568 | break; |