diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-10-06 22:09:50 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-10-06 22:09:50 +0200 |
commit | 7bb346f23c5f7a31f210fe95dcba093d0dc51571 (patch) | |
tree | 2239fc7d76b743ada2f8836a3722f36a3981eee3 /shell | |
parent | 8d680b51148b9cbe7dd3afd37022f3390dd999ef (diff) | |
download | busybox-w32-7bb346f23c5f7a31f210fe95dcba093d0dc51571.tar.gz busybox-w32-7bb346f23c5f7a31f210fe95dcba093d0dc51571.tar.bz2 busybox-w32-7bb346f23c5f7a31f210fe95dcba093d0dc51571.zip |
*: 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.c | 4 |
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) | |||
13083 | /* from var.c: */ | 13083 | /* from var.c: */ |
13084 | { | 13084 | { |
13085 | char **envp; | 13085 | char **envp; |
13086 | char ppid[sizeof(int)*3 + 2]; | ||
13087 | const char *p; | 13086 | const char *p; |
13088 | struct stat st1, st2; | 13087 | struct stat st1, st2; |
13089 | 13088 | ||
@@ -13094,8 +13093,7 @@ init(void) | |||
13094 | } | 13093 | } |
13095 | } | 13094 | } |
13096 | 13095 | ||
13097 | sprintf(ppid, "%u", (unsigned) getppid()); | 13096 | setvar("PPID", utoa(getppid()), 0); |
13098 | setvar("PPID", ppid, 0); | ||
13099 | 13097 | ||
13100 | p = lookupvar("PWD"); | 13098 | p = lookupvar("PWD"); |
13101 | if (p) | 13099 | if (p) |