diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2013-06-13 16:18:23 +0200 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2013-06-13 16:18:23 +0200 |
commit | 1463d1005d1e4254d84e54ccf169c1e05f24ea79 (patch) | |
tree | 9ed24ca701d1d34097a3174c81f8e8fca316f35c /tools | |
parent | efa069949a85cb03a746ac34d3a1a0f756aea5fd (diff) | |
download | neard-1463d1005d1e4254d84e54ccf169c1e05f24ea79.tar.gz neard-1463d1005d1e4254d84e54ccf169c1e05f24ea79.tar.bz2 neard-1463d1005d1e4254d84e54ccf169c1e05f24ea79.zip |
nfctool: sniffer: A record's TNF is not a boolean
A record TNF (Type Name Format) is on 3 bits and thus should not be the
result of a boolean comparison.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/nfctool/ndef-decode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/nfctool/ndef-decode.c b/tools/nfctool/ndef-decode.c index f30d68c..8910f56 100644 --- a/tools/nfctool/ndef-decode.c +++ b/tools/nfctool/ndef-decode.c @@ -95,7 +95,7 @@ int ndef_print_records(guint8 *data, guint32 data_len) cf = (record[0] & 0x20) != 0; sr = (record[0] & 0x10) != 0; il = (record[0] & 0x08) != 0; - tnf = (record[0] & 0x07) != 0; + tnf = (record[0] & 0x07); type_len = record[1]; |