aboutsummaryrefslogtreecommitdiff
path: root/shell/ash.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-11-22 23:49:10 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2010-11-22 23:49:10 +0100
commit26777aa1c659b229f07205291241e45e64712a72 (patch)
tree9f145eef2fe8ffb957ab89ee2f6d0ea9dc7dbd2e /shell/ash.c
parent29ca1591335b2a73522c2c3ef43daff63c71e8dc (diff)
downloadbusybox-w32-26777aa1c659b229f07205291241e45e64712a72.tar.gz
busybox-w32-26777aa1c659b229f07205291241e45e64712a72.tar.bz2
busybox-w32-26777aa1c659b229f07205291241e45e64712a72.zip
fixes for bugs discovered by randomconfig builds and tests
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/ash.c')
-rw-r--r--shell/ash.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/shell/ash.c b/shell/ash.c
index 5ef7efbdb..5671a524b 100644
--- a/shell/ash.c
+++ b/shell/ash.c
@@ -43,7 +43,9 @@
43#include <sys/times.h> 43#include <sys/times.h>
44 44
45#include "shell_common.h" 45#include "shell_common.h"
46#include "math.h" 46#if ENABLE_SH_MATH_SUPPORT
47# include "math.h"
48#endif
47#if ENABLE_ASH_RANDOM_SUPPORT 49#if ENABLE_ASH_RANDOM_SUPPORT
48# include "random.h" 50# include "random.h"
49#else 51#else
@@ -5510,6 +5512,11 @@ static struct arglist exparg;
5510/* 5512/*
5511 * Our own itoa(). 5513 * Our own itoa().
5512 */ 5514 */
5515#if !ENABLE_SH_MATH_SUPPORT
5516/* cvtnum() is used even if math support is off (to prepare $? values and such) */
5517typedef long arith_t;
5518# define ARITH_FMT "%ld"
5519#endif
5513static int 5520static int
5514cvtnum(arith_t num) 5521cvtnum(arith_t num)
5515{ 5522{