aboutsummaryrefslogtreecommitdiff
path: root/toys/lsb
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2020-12-15 13:35:52 -0800
committerRob Landley <rob@landley.net>2021-01-06 01:12:38 -0600
commit824de078e4bdc752da9559cc64df627028310cc3 (patch)
tree94d5a167639a4e62c5705c946617e1fec0628773 /toys/lsb
parent4786fd610362501c2f8c70fef1d8fb66efd0996c (diff)
downloadtoybox-824de078e4bdc752da9559cc64df627028310cc3.tar.gz
seq: always xwrite.
Pointed out by the compiler combined with glibc's use of __attribute__((__warn_unused_result__)) on write().
Diffstat (limited to 'toys/lsb')
-rw-r--r--toys/lsb/seq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/lsb/seq.c b/toys/lsb/seq.c
index fccccd8f..beeaed3f 100644
--- a/toys/lsb/seq.c
+++ b/toys/lsb/seq.c
@@ -115,7 +115,7 @@ void seq_main(void)
ss = flush_toybuf(itoa(ss, ii));
else if (inc<0) for (; ii>=len; ii += inc)
ss = flush_toybuf(itoa(ss, ii));
- if (ss != toybuf) write(1, toybuf, ss-toybuf);
+ if (ss != toybuf) xwrite(1, toybuf, ss-toybuf);
return;
}