Commit df495c86 authored by Vladimír Čunát's avatar Vladimír Čunát Committed by Tomas Krizek

tiny -Wpedantic fixes

parent 9edb777f
......@@ -904,7 +904,7 @@ static int net_bpf_set(lua_State *L)
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);
......
......@@ -207,7 +207,7 @@ static void mp_poison(struct mempool *mp, bool poison)
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 {
......
......@@ -147,4 +147,4 @@ struct kr_prop *bogus_log_props(void)
return prop_list;
}
KR_MODULE_EXPORT(bogus_log);
KR_MODULE_EXPORT(bogus_log)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment