descriptors.c:134:4: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'int' [-Wformat=]
dvb_logwarn("descriptor type 0x%02x is truncated: desc len %ld, section len %zd",
^
descriptors/desc_frequency_list.c: In function 'dvb_desc_frequency_list_init':
descriptors/desc_frequency_list.c:31:12: warning: initialization discards 'const' qualifier from pointer target type [enabled by default]
char *p = buf;
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
size = 4096;
}
if (ptr + 2 >= buf + section_length) {
- dvb_logwarn("descriptor type 0x%02x is truncated: desc len %ld, section len %zd",
+ dvb_logwarn("descriptor type 0x%02x is truncated: desc len %d, section len %zd",
desc_type, desc_len, section_length - (ptr - buf));
return;
}
struct dvb_desc_frequency_list *d = (struct dvb_desc_frequency_list *) desc;
size_t len;
int i;
- char *p = buf;
+ const uint8_t *p = buf;
len = sizeof(*d) - offsetof(struct dvb_desc_frequency_list, bitfield);
memcpy(&d->bitfield, p, len);