diff options
author | Gary E. Miller <gem@rellim.com> | 2015-03-09 15:52:37 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2015-03-09 15:52:37 -0700 |
commit | c0cb4456b86779f67a59819dbd797caea6cb0b99 (patch) | |
tree | cbef94125416bfe5d6a2b7ebd4d05cef86bc42ca /driver_italk.c | |
parent | a2f003b7075dd6a262e1a89ff6fac327c3bef097 (diff) | |
download | gpsd-c0cb4456b86779f67a59819dbd797caea6cb0b99.tar.gz |
Fix cppcheck complaints about not enough parenthesis.
Change this: A & B ? 0 : 1
To this: (A & B) ? 0 : 1
No logic or functional change.
Diffstat (limited to 'driver_italk.c')
-rw-r--r-- | driver_italk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/driver_italk.c b/driver_italk.c index 60883163..4c42597d 100644 --- a/driver_italk.c +++ b/driver_italk.c @@ -218,8 +218,8 @@ static gps_mask_t decode_itk_subframe(struct gps_device_t *session, gpsd_log(&session->context->errout, LOG_PROG, "iTalk 50B SUBFRAME prn %u sf %u - decode %s %s\n", prn, sf, - flags & SUBFRAME_WORD_FLAG_MASK ? "error" : "ok", - flags & SUBFRAME_GPS_PREAMBLE_INVERTED ? "(inverted)" : ""); + (flags & SUBFRAME_WORD_FLAG_MASK) ? "error" : "ok", + (flags & SUBFRAME_GPS_PREAMBLE_INVERTED) ? "(inverted)" : ""); if (flags & SUBFRAME_WORD_FLAG_MASK) return 0; // don't try decode an erroneous packet |