summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 b6893e171..5d7540a70 100644
--- a/openbsd-compat/bsd-misc.c
+++ b/openbsd-compat/bsd-misc.c
@@ -313,12 +313,12 @@ getsid(pid_t pid)
313#undef fflush 313#undef fflush
314int _ssh_compat_fflush(FILE *f) 314int _ssh_compat_fflush(FILE *f)
315{ 315{
316 int r1, r2, r3; 316 int r1, r2;
317 317
318 if (f == NULL) { 318 if (f == NULL) {
319 r2 = fflush(stdout); 319 r1 = fflush(stdout);
320 r3 = fflush(stderr); 320 r2 = fflush(stderr);
321 if (r1 == -1 || r2 == -1 || r3 == -1) 321 if (r1 == -1 || r2 == -1)
322 return -1; 322 return -1;
323 return 0; 323 return 0;
324 } 324 }