Rename variables.

This commit is contained in:
gamemann
2021-11-12 17:46:12 +00:00
parent 99daa2d6f5
commit 8089cfff0e

View File

@@ -138,11 +138,11 @@ int findmapfd(struct bpf_object *bpf_obj, const char *mapname)
*/ */
int loadbpfobj(const char *filename) int loadbpfobj(const char *filename)
{ {
int first_prog_fd = -1; int firstfd = -1;
struct bpf_object *obj; struct bpf_object *obj;
int err; int err;
err = bpf_prog_load(filename, BPF_PROG_TYPE_XDP, &obj, &first_prog_fd); err = bpf_prog_load(filename, BPF_PROG_TYPE_XDP, &obj, &firstfd);
if (err) if (err)
{ {
@@ -154,7 +154,7 @@ int loadbpfobj(const char *filename)
filtersmap = findmapfd(obj, "filters_map"); filtersmap = findmapfd(obj, "filters_map");
statsmap = findmapfd(obj, "stats_map"); statsmap = findmapfd(obj, "stats_map");
return first_prog_fd; return firstfd;
} }
/** /**