xrandr: check_strtod should return double, not int
authorDominik Jasiok <yahoo.com.pl@gmail.com>
Tue, 22 Dec 2009 18:48:04 +0000 (10:48 -0800)
committerKeith Packard <keithp@keithp.com>
Tue, 22 Dec 2009 18:48:04 +0000 (10:48 -0800)
commit27f86db064a5ea60b942fd3d3ddeb462d980df9b
tree3af9b3e95d794c6e43c2d27b9e3e6e98de6d50e2
parentdf254d851cae1dcd1032e307bc828a5800e7342c
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>
xrandr.c