diff options
author | Rob Landley <rob@landley.net> | 2021-02-07 17:19:44 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2021-02-07 17:19:44 -0600 |
commit | 664c417af5d16e217557468ba747a369e8e1ab6b (patch) | |
tree | 028aacc085207ef347fdaa9eb1ccf86d06257208 /toys/lsb | |
parent | 9f7f62615f3963591af33fcc7582867f7063efd2 (diff) | |
download | toybox-664c417af5d16e217557468ba747a369e8e1ab6b.tar.gz |
Add lots of "static" annotations, make a couple things use FLAG() macros, etc.
Diffstat (limited to 'toys/lsb')
-rw-r--r-- | toys/lsb/seq.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/toys/lsb/seq.c b/toys/lsb/seq.c index beeaed3f..7a931c64 100644 --- a/toys/lsb/seq.c +++ b/toys/lsb/seq.c @@ -53,7 +53,8 @@ static double parsef(char *s) } // fast integer conversion to decimal string -char *itoa(char *s, int i) +// TODO move to lib? +static char *itoa(char *s, int i) { char buf[16], *ff = buf; unsigned n = i; @@ -69,10 +70,9 @@ char *itoa(char *s, int i) return s; } -char *flush_toybuf(char *ss) +static char *flush_toybuf(char *ss) { if (ss-toybuf<TT.buflen) return ss; - xwrite(1, toybuf, ss-toybuf); return toybuf; |