summaryrefslogtreecommitdiff
path: root/libgps.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2005-08-26 04:10:26 +0000
committerGary E. Miller <gem@rellim.com>2005-08-26 04:10:26 +0000
commite05d8fe989096df6a24d099eb8b06bf16c3a2110 (patch)
treef783f00869f826ab48c1192a67a14823a76cd300 /libgps.c
parent4363470a1a85033eda1deeb8f35798e70842f068 (diff)
downloadgpsd-e05d8fe989096df6a24d099eb8b06bf16c3a2110.tar.gz
Apply Lonnie Mendez patches to fix my gpsd mistakes.
Also allow gpsd to compile w/o GARMIN_ENABLE.
Diffstat (limited to 'libgps.c')
-rw-r--r--libgps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgps.c b/libgps.c
index 7ed91a0a..4fb8a1cb 100644
--- a/libgps.c
+++ b/libgps.c
@@ -40,7 +40,7 @@ char *deg_to_str( enum deg_str_type type, double f)
if ( deg_dd == type ) {
/* DD.dddddd */
- (void)sprintf( str, "%3d.%06d", deg, frac_deg );
+ (void)sprintf( str, "%3d.%06ld", deg, frac_deg );
return str;
}
fsec = modf( fmin * 60, &fmin);