aboutsummaryrefslogtreecommitdiff
path: root/shell
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 /shell
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 'shell')
-rw-r--r--shell/ash.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 44d3a99a7..2e7228d3c 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -13083,7 +13083,6 @@ init(void)
/* from var.c: */
{
char **envp;
- char ppid[sizeof(int)*3 + 2];
const char *p;
struct stat st1, st2;
@@ -13094,8 +13093,7 @@ init(void)
}
}
- sprintf(ppid, "%u", (unsigned) getppid());
- setvar("PPID", ppid, 0);
+ setvar("PPID", utoa(getppid()), 0);
p = lookupvar("PWD");
if (p)