Some of the grep tests were still failing because we weren't flushing
stdout --- xflush takes a bool that says whether to actually flush, so
we need to pass 1, not 0.
---
 lib/xwrap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
From b59ed3613b44aa07f9844f95abfc4d789ca4773d Mon Sep 17 00:00:00 2001
From: Elliott Hughes <e...@google.com>
Date: Fri, 21 Aug 2020 11:00:33 -0700
Subject: [PATCH] xputsl: fix the *other* line in this function :-)

Some of the grep tests were still failing because we weren't flushing
stdout --- xflush takes a bool that says whether to actually flush, so
we need to pass 1, not 0.
---
 lib/xwrap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/xwrap.c b/lib/xwrap.c
index bd0cdc4c..1bc929f1 100644
--- a/lib/xwrap.c
+++ b/lib/xwrap.c
@@ -159,7 +159,7 @@ void xprintf(char *format, ...)
 // Put string with length (does not append newline)
 void xputsl(char *s, int len)
 {
-  xflush(0);
+  xflush(1);
   xwrite(1, s, len);
 }
 
-- 
2.28.0.297.g1956fa8f8d-goog

_______________________________________________
Toybox mailing list
Toybox@lists.landley.net
http://lists.landley.net/listinfo.cgi/toybox-landley.net

Reply via email to