diff options
author | Gary E. Miller <gem@rellim.com> | 2016-08-09 18:17:17 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2016-08-09 18:17:17 -0700 |
commit | 7d83f7a86f2ab0f74d2057fd7986fe2a2f1c9fd1 (patch) | |
tree | 4ba02e1f8c3199a1a753a7e5e2af71bc10b55a76 /gpsd_json.c | |
parent | a22117e06687d3745a00d3c2ef699994daa02b17 (diff) | |
download | gpsd-7d83f7a86f2ab0f74d2057fd7986fe2a2f1c9fd1.tar.gz |
Fix a misleading indent..
Fixes this warning:
gpsd_json.c:1996:13: warning: this 'else' clause does not guard...
[-Wmisleading -indentation]
Since when is indenting mandatory in C???
Diffstat (limited to 'gpsd_json.c')
-rw-r--r-- | gpsd_json.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gpsd_json.c b/gpsd_json.c index 7d7e9113..8a4adab7 100644 --- a/gpsd_json.c +++ b/gpsd_json.c @@ -1985,16 +1985,16 @@ void json_aivdm_dump(const struct ais_t *ais, ais->type6.dac1fid20.future2, json_stringify(buf1, sizeof(buf1), ais->type6.dac1fid20.berth_name)); - if (scaled) - str_appendf(buf, buflen, + if (scaled) + str_appendf(buf, buflen, "\"berth_lon\":%.3f," "\"berth_lat\":%.3f," "\"berth_depth\":%.1f}\r\n", ais->type6.dac1fid20.berth_lon / AIS_LATLON3_DIV, ais->type6.dac1fid20.berth_lat / AIS_LATLON3_DIV, ais->type6.dac1fid20.berth_depth * 0.1); - else - str_appendf(buf, buflen, + else + str_appendf(buf, buflen, "\"berth_lon\":%d," "\"berth_lat\":%d," "\"berth_depth\":%u}\r\n", |