diff options
author | Mark Wielaard <mark@klomp.org> | 2022-11-02 17:54:11 +0100 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2022-11-02 17:54:11 +0100 |
commit | 58a7aa900bc2d9822b0d0cb596ba95a21ff0fd2d (patch) | |
tree | 2c5ff2b58407fa906f14d953c674d52f0770fc0d /debuginfod | |
parent | e9f3045caa5c4498f371383e5519151942d48b6d (diff) | |
download | elfutils-58a7aa900bc2d9822b0d0cb596ba95a21ff0fd2d.tar.gz |
debuginfod: Mark extract_section function static
The extract_section function in debuginfod-client.c is an internal
function and should not be exported. Mark it as static.
Signed-off-by: Mark Wielaard <mark@klomp.org>
Diffstat (limited to 'debuginfod')
-rw-r--r-- | debuginfod/ChangeLog | 4 | ||||
-rw-r--r-- | debuginfod/debuginfod-client.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/debuginfod/ChangeLog b/debuginfod/ChangeLog index 50668e61..1efa080f 100644 --- a/debuginfod/ChangeLog +++ b/debuginfod/ChangeLog @@ -1,3 +1,7 @@ +2022-11-02 Mark Wielaard <mark@klomp.org> + + * debuginfod-client.c (extract_section): Mark static. + 2022-11-01 Aaron Merey <amerey@redhat.com> * debuginfod-client.c (path_escape): Add early return. diff --git a/debuginfod/debuginfod-client.c b/debuginfod/debuginfod-client.c index 0c4a00cf..f48e32cc 100644 --- a/debuginfod/debuginfod-client.c +++ b/debuginfod/debuginfod-client.c @@ -621,7 +621,7 @@ path_escape (const char *src, char *dest) section name was not found. -EEXIST indicates that the section was found but had type SHT_NOBITS. */ -int +static int extract_section (int fd, const char *section, char *fd_path, char **usr_path) { elf_version (EV_CURRENT); |