diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2013-07-29 14:18:32 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2013-07-29 14:18:32 +0200 |
commit | 05965cbb7587f6ba06687a94d040d0ae5933d28a (patch) | |
tree | 1b554f4075c6b0b07df93e43f1f33a30667152b0 /networking/nc_bloaty.c | |
parent | 2ead5316b48ce85db483d9d6f3f4a59c9f38fe21 (diff) | |
download | busybox-w32-05965cbb7587f6ba06687a94d040d0ae5933d28a.tar.gz busybox-w32-05965cbb7587f6ba06687a94d040d0ae5933d28a.tar.bz2 busybox-w32-05965cbb7587f6ba06687a94d040d0ae5933d28a.zip |
nc: remove unnecessary "errno = 0"
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/nc_bloaty.c')
-rw-r--r-- | networking/nc_bloaty.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/networking/nc_bloaty.c b/networking/nc_bloaty.c index 04baf0316..b9eff3da4 100644 --- a/networking/nc_bloaty.c +++ b/networking/nc_bloaty.c | |||
@@ -613,7 +613,6 @@ static int readwrite(void) | |||
613 | while (fds_open) { | 613 | while (fds_open) { |
614 | unsigned wretry = 8200; /* net-write sanity counter */ | 614 | unsigned wretry = 8200; /* net-write sanity counter */ |
615 | 615 | ||
616 | errno = 0; /* clear from sleep, close, whatever */ | ||
617 | ding2 = ding1; /* FD_COPY ain't portable... */ | 616 | ding2 = ding1; /* FD_COPY ain't portable... */ |
618 | /* some systems, notably linux, crap into their select timers on return, so | 617 | /* some systems, notably linux, crap into their select timers on return, so |
619 | we create a expendable copy and give *that* to select. */ | 618 | we create a expendable copy and give *that* to select. */ |
@@ -696,9 +695,9 @@ Debug("got %d from the net, errno %d", rr, errno); | |||
696 | if (rr > 0) { | 695 | if (rr > 0) { |
697 | if (o_ofile) /* log the stdout */ | 696 | if (o_ofile) /* log the stdout */ |
698 | oprint('<', (unsigned char *)np, rr); | 697 | oprint('<', (unsigned char *)np, rr); |
699 | np += rr; /* fix up ptrs and whatnot */ | 698 | np += rr; |
700 | rnleft -= rr; | 699 | rnleft -= rr; |
701 | wrote_out += rr; /* global count */ | 700 | wrote_out += rr; /* global count */ |
702 | } | 701 | } |
703 | Debug("wrote %d to stdout, errno %d", rr, errno); | 702 | Debug("wrote %d to stdout, errno %d", rr, errno); |
704 | } /* rnleft */ | 703 | } /* rnleft */ |
@@ -713,7 +712,7 @@ Debug("wrote %d to stdout, errno %d", rr, errno); | |||
713 | oprint('>', (unsigned char *)zp, rr); | 712 | oprint('>', (unsigned char *)zp, rr); |
714 | zp += rr; | 713 | zp += rr; |
715 | rzleft -= rr; | 714 | rzleft -= rr; |
716 | wrote_net += rr; /* global count */ | 715 | wrote_net += rr; /* global count */ |
717 | } | 716 | } |
718 | Debug("wrote %d to net, errno %d", rr, errno); | 717 | Debug("wrote %d to net, errno %d", rr, errno); |
719 | } /* rzleft */ | 718 | } /* rzleft */ |
@@ -730,7 +729,7 @@ Debug("wrote %d to net, errno %d", rr, errno); | |||
730 | } | 729 | } |
731 | goto shovel; | 730 | goto shovel; |
732 | } | 731 | } |
733 | } /* while ding1:netfd is open */ | 732 | } /* while (fds_open) */ |
734 | 733 | ||
735 | /* XXX: maybe want a more graceful shutdown() here, or screw around with | 734 | /* XXX: maybe want a more graceful shutdown() here, or screw around with |
736 | linger times?? I suspect that I don't need to since I'm always doing | 735 | linger times?? I suspect that I don't need to since I'm always doing |