Ref:
|
int |
|
section_idx_from_name(const char** section_names, int length, const char* needle) |
|
{ |
|
for (int i = 0; i < length; i++) { |
|
if (!strcmp(section_names[i], needle)) { |
|
return i; |
|
} |
|
} |
|
return -1; |
|
} |
I don't see section_idx_from_name used anywhere and when it was introduced it also wasn't used anywhere, ref:
f322f8c
#310
section_idx_from_name can cause issues when ubpf is compiled with -Wmissing-prototypes if it is dead code it should be removed ideally.
Ref:
ubpf/vm/ubpf_loader.c
Lines 97 to 106 in 2749995
I don't see
section_idx_from_nameused anywhere and when it was introduced it also wasn't used anywhere, ref:f322f8c
#310
section_idx_from_namecan cause issues when ubpf is compiled with-Wmissing-prototypesif it is dead code it should be removed ideally.