summaryrefslogtreecommitdiff
path: root/openbsd-compat/bsd-misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbsd-compat/bsd-misc.c')
-rw-r--r--openbsd-compat/bsd-misc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/openbsd-compat/bsd-misc.c b/openbsd-compat/bsd-misc.c
index b6893e1711f5..5d7540a70f4b 100644
--- a/openbsd-compat/bsd-misc.c
+++ b/openbsd-compat/bsd-misc.c
@@ -313,12 +313,12 @@ getsid(pid_t pid)
#undef fflush
int _ssh_compat_fflush(FILE *f)
{
- int r1, r2, r3;
+ int r1, r2;
if (f == NULL) {
- r2 = fflush(stdout);
- r3 = fflush(stderr);
- if (r1 == -1 || r2 == -1 || r3 == -1)
+ r1 = fflush(stdout);
+ r2 = fflush(stderr);
+ if (r1 == -1 || r2 == -1)
return -1;
return 0;
}