Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-04-05 17:24:07 +0400
committerEric Andersen <andersen@codepoet.org>2004-04-05 17:24:07 +0400
commit009617f413953c0772ab5d6eea9549254916cc60 (patch)
tree5c1150ca0244f077b42d46148dcb29fc5da67452 /shell
parentb2aa776f891b159a2ee8233f44ad70c96b7da86f (diff)
Per suggestion by Pawel Sakowski, fix the dash_arith() prototype
to return a long. We were needlessly truncating to an int.
Diffstat (limited to 'shell')
-rw-r--r--shell/ash.c4
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 *);
static void unsetfunc(const char *);
#ifdef CONFIG_ASH_MATH_SUPPORT
-static int dash_arith(const char *);
+static long dash_arith(const char *);
#endif
#ifdef CONFIG_ASH_RANDOM_SUPPORT
@@ -12475,7 +12475,7 @@ static int timescmd(int ac, char **av)
}
#ifdef CONFIG_ASH_MATH_SUPPORT
-static int
+static long
dash_arith(const char *s)
{
long result;