summaryrefslogtreecommitdiff
path: root/test_geoid.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2010-04-14 00:32:06 -0400
committerEric S. Raymond <esr@thyrsus.com>2010-04-14 00:32:06 -0400
commit4ab4b136c84acbe8c2434762f8fb0faf08c7a5bd (patch)
tree37c4e52ca307c6fb050459e9758add126d5f02ae /test_geoid.c
parentb40b09abde8b87faf6e17e0f539470cc420e0158 (diff)
downloadgpsd-4ab4b136c84acbe8c2434762f8fb0faf08c7a5bd.tar.gz
Reindent the test programs. All regression tests pass.
Diffstat (limited to 'test_geoid.c')
-rw-r--r--test_geoid.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/test_geoid.c b/test_geoid.c
index 5d428a59..a95bbc52 100644
--- a/test_geoid.c
+++ b/test_geoid.c
@@ -13,25 +13,23 @@
int main(int argc, char **argv)
{
- double lat, lon;
+ double lat, lon;
if (argc != 3) {
- fprintf(stderr,"Usage: %s lat lon\n",argv[0]);
+ fprintf(stderr, "Usage: %s lat lon\n", argv[0]);
return 1;
}
- lat=atof(argv[1]);
- lon=atof(argv[2]);
+ lat = atof(argv[1]);
+ lon = atof(argv[2]);
- if (lat > 90. || lat < -90.)
- {
- fprintf(stderr," -90 <= lat=%s(%.f) <= 90 ?\n",argv[1],lat);
+ if (lat > 90. || lat < -90.) {
+ fprintf(stderr, " -90 <= lat=%s(%.f) <= 90 ?\n", argv[1], lat);
return 1;
}
- if (lon > 180. || lat < -180.)
- {
- fprintf(stderr," -180 <= lon=%s(%.f) <= 180 ?\n",argv[2],lon);
+ if (lon > 180. || lat < -180.) {
+ fprintf(stderr, " -180 <= lon=%s(%.f) <= 180 ?\n", argv[2], lon);
return 1;
}