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