From 7bb346f23c5f7a31f210fe95dcba093d0dc51571 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Tue, 6 Oct 2009 22:09:50 +0200 Subject: *: 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 --- shell/ash.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'shell') 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) -- cgit v1.2.3-55-g6feb