ndef: Fix returned error code in near_ndef_count_records
authorSzymon Janc <szymon.janc@tieto.com>
Thu, 9 Aug 2012 13:42:52 +0000 (15:42 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 14 Aug 2012 15:59:19 +0000 (17:59 +0200)
commit85b7f7c776a41a9ae7889c1db8add5f45b00ffe4
treeaef22de0b521399cdd75cd43f9e72d895cf35069
parent8381279c658af49339c045db3ba798744c73806d
ndef: Fix returned error code in near_ndef_count_records

In case of error positive value was returned due to err being of
unsigned type uint8_t.
src/ndef.c