get_pagesize() has a static cache anyway, no need to duplicate it.
* bpf.c (SYS_FUNC(bpf)): Remove static size_t page_size and its
initialisation, use get_pagesize() as the size of buf directly.
int rc;
if (entering(tcp)) {
- static size_t page_size;
static char *buf;
- if (!buf) {
- page_size = get_pagesize();
- buf = xmalloc(page_size);
- }
+ if (!buf)
+ buf = xmalloc(get_pagesize());
printxval(bpf_commands, cmd, "BPF_???");
tprints(", ");