]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - sim/bpf/bpf.c
sim: bpf: include more local headers & fix broken funcs
authorMike Frysinger <vapier@gentoo.org>
Sun, 27 Jun 2021 03:18:40 +0000 (23:18 -0400)
committerMike Frysinger <vapier@gentoo.org>
Sun, 27 Jun 2021 14:53:15 +0000 (10:53 -0400)
commit76f11310dfe5815ac6045fcd76eb3bbdc85678ae
tree385880f64eb2484adf0a797c2e44f80502532dee
parent5db3a175cc173c00607db959cfa401d0055f7dd4
sim: bpf: include more local headers & fix broken funcs

Various files were not including the relevant headers, or some funcs
were missing prototypes entirely, leading to mismatch between the
actual definition of the functions.  Add includes to a few places and
fix the broken functions that are uncovered as a result.  Fixing some
compile warnings (e.g. missing prototypes) often find real bugs.
sim/bpf/ChangeLog
sim/bpf/bpf-helpers.c
sim/bpf/bpf-helpers.h
sim/bpf/bpf.c
sim/bpf/sim-main.h