Fix pointer type warning

master
John Cox 2013-10-03 13:52:20 +01:00
rodzic 56b8a63404
commit 49e9fc6060
1 zmienionych plików z 2 dodań i 2 usunięć

4
pcap.c
Wyświetl plik

@ -82,7 +82,7 @@ static int read_block_header(const struct _pcap_io_ctx *const ctx, uint32_t *con
} }
static int read_chunk(FILE *const f, const size_t len, void **const pBuf) static int read_chunk(FILE *const f, const size_t len, uint8_t **const pBuf)
{ {
int rv; int rv;
void *buf = malloc(len); void *buf = malloc(len);
@ -111,7 +111,7 @@ static int read_chunk(FILE *const f, const size_t len, void **const pBuf)
return 1; return 1;
} }
static int read_options(FILE *const f, const size_t len, void **const pBuf) static int read_options(FILE *const f, const size_t len, uint8_t **const pBuf)
{ {
// If all we have is the final total length data - skip it // If all we have is the final total length data - skip it
if (len <= 4) if (len <= 4)