b9080c
commit 58a7aa900bc2d9822b0d0cb596ba95a21ff0fd2d
b9080c
Author: Mark Wielaard <mark@klomp.org>
b9080c
Date:   Wed Nov 2 17:54:11 2022 +0100
b9080c
b9080c
    debuginfod: Mark extract_section function static
b9080c
    
b9080c
    The extract_section function in debuginfod-client.c is an internal
b9080c
    function and should not be exported. Mark it as static.
b9080c
    
b9080c
    Signed-off-by: Mark Wielaard <mark@klomp.org>
b9080c
b9080c
diff --git a/debuginfod/debuginfod-client.c b/debuginfod/debuginfod-client.c
b9080c
index 0c4a00cf..f48e32cc 100644
b9080c
--- a/debuginfod/debuginfod-client.c
b9080c
+++ b/debuginfod/debuginfod-client.c
b9080c
@@ -621,7 +621,7 @@ path_escape (const char *src, char *dest)
b9080c
    section name was not found.  -EEXIST indicates that the section was
b9080c
    found but had type SHT_NOBITS.  */
b9080c
 
b9080c
-int
b9080c
+static int
b9080c
 extract_section (int fd, const char *section, char *fd_path, char **usr_path)
b9080c
 {
b9080c
   elf_version (EV_CURRENT);