summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Jasiok <yahoo.com.pl@gmail.com>2009-12-22 10:48:04 -0800
committerKeith Packard <keithp@keithp.com>2009-12-22 10:48:04 -0800
commit27f86db064a5ea60b942fd3d3ddeb462d980df9b (patch)
tree3af9b3e95d794c6e43c2d27b9e3e6e98de6d50e2
parentdf254d851cae1dcd1032e307bc828a5800e7342c (diff)
xrandr: check_strtod should return double, not int
check_strtod performs error checking around strtod to ensure that arguments are correctly processed. However, it also accidentally(?) cast the result to int, which was then universally cast back to double by all callers. Narrowing and re-widening the type doesn't make any sense. Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--xrandr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xrandr.c b/xrandr.c
index bbbc397..7b4f71a 100644
--- a/xrandr.c
+++ b/xrandr.c
@@ -2010,7 +2010,7 @@ check_strtol(char *s)
return result;
}
-static int
+static double
check_strtod(char *s)
{
char *endptr;