diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2004-04-05 13:24:07 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2004-04-05 13:24:07 +0000 |
commit | 49ac47bd45245a80a9170c9bc53e36eeea48e313 (patch) | |
tree | 5c1150ca0244f077b42d46148dcb29fc5da67452 /shell | |
parent | 5c5e5ccc7d7a365f776fbf77f6a011f37369e8e3 (diff) | |
download | busybox-w32-49ac47bd45245a80a9170c9bc53e36eeea48e313.tar.gz busybox-w32-49ac47bd45245a80a9170c9bc53e36eeea48e313.tar.bz2 busybox-w32-49ac47bd45245a80a9170c9bc53e36eeea48e313.zip |
Per suggestion by Pawel Sakowski, fix the dash_arith() prototype
to return a long. We were needlessly truncating to an int.
git-svn-id: svn://busybox.net/trunk/busybox@8687 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ash.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/ash.c b/shell/ash.c index 5072528f4..5ebc8aced 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -1446,7 +1446,7 @@ static void defun(char *, union node *); | |||
1446 | static void unsetfunc(const char *); | 1446 | static void unsetfunc(const char *); |
1447 | 1447 | ||
1448 | #ifdef CONFIG_ASH_MATH_SUPPORT | 1448 | #ifdef CONFIG_ASH_MATH_SUPPORT |
1449 | static int dash_arith(const char *); | 1449 | static long dash_arith(const char *); |
1450 | #endif | 1450 | #endif |
1451 | 1451 | ||
1452 | #ifdef CONFIG_ASH_RANDOM_SUPPORT | 1452 | #ifdef CONFIG_ASH_RANDOM_SUPPORT |
@@ -12475,7 +12475,7 @@ static int timescmd(int ac, char **av) | |||
12475 | } | 12475 | } |
12476 | 12476 | ||
12477 | #ifdef CONFIG_ASH_MATH_SUPPORT | 12477 | #ifdef CONFIG_ASH_MATH_SUPPORT |
12478 | static int | 12478 | static long |
12479 | dash_arith(const char *s) | 12479 | dash_arith(const char *s) |
12480 | { | 12480 | { |
12481 | long result; | 12481 | long result; |