]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
debuginfod: Mark extract_section function static
authorMark Wielaard <mark@klomp.org>
Wed, 2 Nov 2022 16:54:11 +0000 (17:54 +0100)
committerMark Wielaard <mark@klomp.org>
Wed, 2 Nov 2022 16:54:11 +0000 (17:54 +0100)
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>
debuginfod/ChangeLog
debuginfod/debuginfod-client.c

index 50668e611c7d2484a6b8977f93fc241f1f1c09ff..1efa080fe33738f06fa2de8d81f9b0c4df4cc438 100644 (file)
@@ -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.
index 0c4a00cf9c6a0828e23237b29f9a77f9ba14639a..f48e32cc89bcb486623a6b0ee1a5bf91a2732aca 100644 (file)
@@ -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);