lua_pop(L, 1);
if (network_set_bpf(net, progfd) == 0) {
- char errmsg[256] = {};
+ char errmsg[256] = { 0 };
snprintf(errmsg, sizeof(errmsg), "failed to attach BPF program to some networks: %s", strerror(errno));
format_error(L, errmsg);
lua_error(L);
kr_asan_unpoison(mp, sizeof(*mp));
}
struct mempool_chunk *chunk = mp->state.last[0];
- void *chunk_off = (void *)chunk - chunk->size;
+ void *chunk_off = (uint8_t *)chunk - chunk->size;
if (poison) {
kr_asan_poison(chunk_off, chunk->size);
} else {