summaryrefslogtreecommitdiff
path: root/gpsdecode.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-09-09 19:55:04 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-09-09 19:55:04 +0000
commitf8568d0193cd3d5e730b986e79d49fcda7c2367a (patch)
tree9b6d50dbeb5eb4b04cc2e7a27b6a04e8388728d1 /gpsdecode.c
parent5dcc7402bc00a21c7432316af66bca429fc855df (diff)
downloadgpsd-f8568d0193cd3d5e730b986e79d49fcda7c2367a.tar.gz
Partial splint cleanup. All regression tests pass.
Diffstat (limited to 'gpsdecode.c')
-rw-r--r--gpsdecode.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gpsdecode.c b/gpsdecode.c
index 97881b53..fd0320a5 100644
--- a/gpsdecode.c
+++ b/gpsdecode.c
@@ -48,7 +48,7 @@ static void aivdm_csv_dump(struct ais_t *ais, char *buf, size_t buflen)
case 2:
case 3:
(void)snprintf(buf+strlen(buf), buflen-strlen(buf),
- "%u,%d,%u,%u,%d,%d,%u,%d,%u,0x%x,%d,0x%x",
+ "%u,%d,%u,%u,%d,%d,%u,%u,%u,0x%x,%u,0x%x",
ais->type1.status,
ais->type1.turn,
ais->type1.speed,
@@ -59,7 +59,7 @@ static void aivdm_csv_dump(struct ais_t *ais, char *buf, size_t buflen)
ais->type1.heading,
ais->type1.second,
ais->type1.maneuver,
- ais->type1.raim,
+ (uint)ais->type1.raim,
ais->type1.radio);
break;
case 4: /* Base Station Report */
@@ -76,7 +76,7 @@ static void aivdm_csv_dump(struct ais_t *ais, char *buf, size_t buflen)
ais->type4.lon,
ais->type4.lat,
ais->type4.epfd,
- ais->type4.raim,
+ (uint)ais->type4.raim,
ais->type4.radio);
break;
case 5: /* Ship static and voyage related data */
@@ -185,7 +185,7 @@ static void aivdm_csv_dump(struct ais_t *ais, char *buf, size_t buflen)
break;
case 17:
(void)snprintf(buf+strlen(buf), buflen-strlen(buf),
- "%d,%d,%d:%s",
+ "%d,%d,%u:%s",
ais->type17.lon,
ais->type17.lat,
ais->type17.bitcount,