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