[BusyBox-cvs] busybox/shell ash.c,1.93,1.94
Erik Andersen
andersen at busybox.net
Mon Apr 5 13:24:10 UTC 2004
Update of /var/cvs/busybox/shell
In directory nail:/tmp/cvs-serv32219/shell
Modified Files:
ash.c
Log Message:
Per suggestion by Pawel Sakowski, fix the dash_arith() prototype
to return a long. We were needlessly truncating to an int.
Index: ash.c
===================================================================
RCS file: /var/cvs/busybox/shell/ash.c,v
retrieving revision 1.93
retrieving revision 1.94
diff -u -d -r1.93 -r1.94
--- a/ash.c 16 Mar 2004 05:14:09 -0000 1.93
+++ b/ash.c 5 Apr 2004 13:24:07 -0000 1.94
@@ -1446,7 +1446,7 @@
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 @@
}
#ifdef CONFIG_ASH_MATH_SUPPORT
-static int
+static long
dash_arith(const char *s)
{
long result;
More information about the busybox-cvs
mailing list