Skip to content

Commit 2b73f76

Browse files
ismhongchenhengqi
authored andcommitted
libbpf-tools: Fix list_syscalls() prototype return type
The function list_syscalls() in syscall_helpers.c returns an integer value, but its prototype in syscall_helpers.h declared a void return type. This commit corrects the function prototype in syscall_helpers.h to match its implementation, changing the return type from void to int. Fixes: f3fbeb4 ("libbpf-tools: convert BCC syscount to BPF CO-RE version") Signed-off-by: Ism Hong <[email protected]>
1 parent 791bf81 commit 2b73f76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libbpf-tools/syscall_helpers.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
void init_syscall_names(void);
88
void free_syscall_names(void);
9-
void list_syscalls(void);
9+
int list_syscalls(void);
1010
int syscall_name(unsigned n, char *buf, size_t size);
1111

1212
#endif /* __SYSCALL_HELPERS_H */

0 commit comments

Comments
 (0)