aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-10-06 22:09:50 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-10-06 22:09:50 +0200
commit7bb346f23c5f7a31f210fe95dcba093d0dc51571 (patch)
tree2239fc7d76b743ada2f8836a3722f36a3981eee3 /editors
parent8d680b51148b9cbe7dd3afd37022f3390dd999ef (diff)
downloadbusybox-7bb346f23c5f7a31f210fe95dcba093d0dc51571.tar.gz
*: use {i,u}toa() where appropriate
function old new delta startservice 377 363 -14 setari_u 54 40 -14 ash_main 1375 1361 -14 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 0/3 up/down: 0/-42) Total: -42 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'editors')
-rw-r--r--editors/awk.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/editors/awk.c b/editors/awk.c
index d15dbb3e5..17244f9e6 100644
--- a/editors/awk.c
+++ b/editors/awk.c
@@ -765,11 +765,9 @@ static var *setvar_u(var *v, const char *value)
/* set array element to user string */
static void setari_u(var *a, int idx, const char *s)
{
- char sidx[sizeof(int)*3 + 1];
var *v;
- sprintf(sidx, "%d", idx);
- v = findvar(iamarray(a), sidx);
+ v = findvar(iamarray(a), itoa(idx));
setvar_u(v, s);
}