summaryrefslogtreecommitdiff
path: root/test_geoid.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-08-27 08:55:33 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-08-27 08:55:33 -0400
commit86f669a7b2ad9a8c38b23aaf9f222241d0ea59b7 (patch)
tree270370ead33327d39781eaad0b62e57ed95768cf /test_geoid.c
parent35135b1f379a103e2bc236577358db060f6cf90d (diff)
downloadgpsd-86f669a7b2ad9a8c38b23aaf9f222241d0ea59b7.tar.gz
Uniform use of safe_atof(). All regression tests pass.
Diffstat (limited to 'test_geoid.c')
-rw-r--r--test_geoid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test_geoid.c b/test_geoid.c
index ee4a95a5..f319cc75 100644
--- a/test_geoid.c
+++ b/test_geoid.c
@@ -23,8 +23,8 @@ int main(int argc, char **argv)
return 1;
}
- lat = atof(argv[1]);
- lon = atof(argv[2]);
+ lat = safe_atof(argv[1]);
+ lon = safe_atof(argv[2]);
if (lat > 90. || lat < -90.) {
fprintf(stderr, " -90 <= lat=%s(%.f) <= 90 ?\n", argv[1], lat);