summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Wielaard <mark@klomp.org>2022-11-02 17:54:11 +0100
committerFrank Ch. Eigler <fche@redhat.com>2023-04-07 10:53:38 -0400
commit0a15e368d303e2e914ec6d1e4cc3476c93ec7d1d (patch)
treed921bcb4b9577086f9ebf5917108ddd353f9817a
parentf6ebc9986fb8b90062715c28ca835970baae7fdb (diff)
downloadelfutils-0a15e368d303e2e914ec6d1e4cc3476c93ec7d1d.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>
-rw-r--r--debuginfod/ChangeLog4
-rw-r--r--debuginfod/debuginfod-client.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/debuginfod/ChangeLog b/debuginfod/ChangeLog
index daafcc1a..ea363886 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 a3031321..611da879 100644
--- a/debuginfod/debuginfod-client.c
+++ b/debuginfod/debuginfod-client.c
@@ -963,7 +963,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);