diff options
Diffstat (limited to 'runit')
-rw-r--r-- | runit/runit_lib.c | 9 |
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 | ||
296 | unsigned fmt_taia(char *s, struct taia *t) { | 296 | unsigned 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 | ||