aboutsummaryrefslogtreecommitdiff
path: root/shell/ash.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2011-01-04 19:56:15 +0700
committerNguyễn Thái Ngọc Duy <pclouds@gmail.com>2011-01-04 19:56:15 +0700
commit5f6f2162512106adf120d4b528bb125e93e34429 (patch)
tree7d7449f755633c263be7125ad58d21cc3ca5b8a7 /shell/ash.c
parent9db69882bee2d528d706d61d34ef7741122330be (diff)
parenta116552869db5e7793ae10968eb3c962c69b3d8c (diff)
downloadbusybox-w32-5f6f2162512106adf120d4b528bb125e93e34429.tar.gz
busybox-w32-5f6f2162512106adf120d4b528bb125e93e34429.tar.bz2
busybox-w32-5f6f2162512106adf120d4b528bb125e93e34429.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'shell/ash.c')
-rw-r--r--shell/ash.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/shell/ash.c b/shell/ash.c
index ccf4288a9..f7baf2b3b 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -57,7 +57,9 @@
57#include <sys/times.h> 57#include <sys/times.h>
58 58
59#include "shell_common.h" 59#include "shell_common.h"
60#include "math.h" 60#if ENABLE_SH_MATH_SUPPORT
61# include "math.h"
62#endif
61#if ENABLE_ASH_RANDOM_SUPPORT 63#if ENABLE_ASH_RANDOM_SUPPORT
62# include "random.h" 64# include "random.h"
63#else 65#else
@@ -5834,6 +5836,11 @@ static struct arglist exparg;
5834/* 5836/*
5835 * Our own itoa(). 5837 * Our own itoa().
5836 */ 5838 */
5839#if !ENABLE_SH_MATH_SUPPORT
5840/* cvtnum() is used even if math support is off (to prepare $? values and such) */
5841typedef long arith_t;
5842# define ARITH_FMT "%ld"
5843#endif
5837static int 5844static int
5838cvtnum(arith_t num) 5845cvtnum(arith_t num)
5839{ 5846{
@@ -13648,7 +13655,7 @@ int ash_main(int argc UNUSED_PARAM, char **argv)
13648 } 13655 }
13649 } 13656 }
13650#endif 13657#endif
13651 if (/* argv[0] && */ argv[0][0] == '-') 13658 if (argv[0] && argv[0][0] == '-')
13652 isloginsh = 1; 13659 isloginsh = 1;
13653 if (isloginsh) { 13660 if (isloginsh) {
13654 state = 1; 13661 state = 1;