aboutsummaryrefslogtreecommitdiff
path: root/runit/runit_lib.c
diff options
context:
space:
mode:
authorvda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-01-12 22:10:34 +0000
committervda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-01-12 22:10:34 +0000
commitd3bcc434bbc51143284e0108521b97f961c144d2 (patch)
tree09708579e18a033c6722c5194c46116705f47b83 /runit/runit_lib.c
parent0a0339cfc16667f8f41a0cb0cfe4c50543e9c251 (diff)
downloadbusybox-w32-d3bcc434bbc51143284e0108521b97f961c144d2.tar.gz
busybox-w32-d3bcc434bbc51143284e0108521b97f961c144d2.tar.bz2
busybox-w32-d3bcc434bbc51143284e0108521b97f961c144d2.zip
random small size optimizations
git-svn-id: svn://busybox.net/trunk/busybox@17263 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'runit/runit_lib.c')
-rw-r--r--runit/runit_lib.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/runit/runit_lib.c b/runit/runit_lib.c
index b885a3412..2953235f0 100644
--- a/runit/runit_lib.c
+++ b/runit/runit_lib.c
@@ -294,16 +294,11 @@ unsigned fmt_ptime(char *s, struct taia *ta) {
294} 294}
295 295
296unsigned fmt_taia(char *s, struct taia *t) { 296unsigned fmt_taia(char *s, struct taia *t) {
297 static char hex[16] = "0123456789abcdef";
298 static char pack[TAIA_PACK]; 297 static char pack[TAIA_PACK];
299 int i;
300 298
301 taia_pack(pack, t); 299 taia_pack(pack, t);
302 s[0] = '@'; 300 *s++ = '@';
303 for (i = 0; i < 12; ++i) { 301 bin2hex(s, pack, 12);
304 s[i*2+1] = hex[(pack[i] >> 4) &15];
305 s[i*2+2] = hex[pack[i] &15];
306 }
307 return 25; 302 return 25;
308} 303}
309 304