diff options
author | Elliott Hughes <enh@google.com> | 2020-12-15 13:35:52 -0800 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2021-01-06 01:12:38 -0600 |
commit | 824de078e4bdc752da9559cc64df627028310cc3 (patch) | |
tree | 94d5a167639a4e62c5705c946617e1fec0628773 | |
parent | 4786fd610362501c2f8c70fef1d8fb66efd0996c (diff) | |
download | toybox-824de078e4bdc752da9559cc64df627028310cc3.tar.gz |
seq: always xwrite.
Pointed out by the compiler combined with glibc's use of
__attribute__((__warn_unused_result__)) on write().
-rw-r--r-- | toys/lsb/seq.c | 2 |
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; } |