aboutsummaryrefslogtreecommitdiff
path: root/toys/posix/ls.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2023-03-05 14:11:24 -0600
committerRob Landley <rob@landley.net>2023-03-05 14:11:24 -0600
commit3f708772947a4ee7905bc70b1545adfe03719322 (patch)
tree145c9a51b0f21ed68c12e5ae70bf5027e10e1e04 /toys/posix/ls.c
parent3dc487d989d47a71286d27f0c47a5189e19ee01e (diff)
downloadtoybox-3f708772947a4ee7905bc70b1545adfe03719322.tar.gz
llvm warns without an extra ,0 and gcc now warns _with_ the extra ,0
(because it distinguishes between "1" and "true" for no obvious reason) so switch to a puts variant.
Diffstat (limited to 'toys/posix/ls.c')
-rw-r--r--toys/posix/ls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/posix/ls.c b/toys/posix/ls.c
index 9d3e99a3..42af7243 100644
--- a/toys/posix/ls.c
+++ b/toys/posix/ls.c
@@ -390,7 +390,7 @@ static void listfiles(int dirfd, struct dirtree *indir)
xputc('\n');
width = 0;
} else {
- printf(" "+FLAG(m), 0); // shut up the stupid compiler
+ xputsn(" "+FLAG(m));
width += 2-FLAG(m);
}
}