tools/resolve_btfids: Fix warnings
authorStanislav Fomichev <sdf@google.com>
Mon, 29 Mar 2021 22:31:43 +0000 (15:31 -0700)
committerAndrii Nakryiko <andrii@kernel.org>
Wed, 31 Mar 2021 19:09:12 +0000 (12:09 -0700)
commite27bfefb21f28d5295432f042b5d9d7871100c35
tree12b9247fa4d2a4073cf0a103b98d9b4d3709b9b8
parent63f8af0fc34197a276674fa0d4d865aeff1f0172
tools/resolve_btfids: Fix warnings

* make eprintf static, used only in main.c
* initialize ret in eprintf
* remove unused *tmp

v3:
* remove another err (Song Liu)

v2:
* remove unused 'int err = -1'

Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Song Liu <songliubraving@fb.com>
Link: https://lore.kernel.org/bpf/20210329223143.3659983-1-sdf@google.com
tools/bpf/resolve_btfids/main.c