cppcheck fixes const
This commit is contained in:
1 parent
2bf2bb301a
commit
89a05b47a8
9 files changed
+17
-17
No files matched your search
@@ -105,7 +105,7 @@ static const char *URI_s[] = {
|
||||
static int ndefRecordDecodeAndPrint(uint8_t *ndefRecord, size_t ndefRecordLen);
|
||||
static int ndefDecodePayload(NDEFHeader_t *ndef);
|
||||
|
||||
static uint16_t ndefTLVGetLength(uint8_t *data, size_t *indx) {
|
||||
static uint16_t ndefTLVGetLength(const uint8_t *data, size_t *indx) {
|
||||
uint16_t len = 0;
|
||||
if (data[0] == 0xff) {
|
||||
len = (data[1] << 8) + data[2];
|
||||
|
||||
Reference in new issue
Block a user