libdrgn: make drgn_program_set_core_dump_fd_internal static

This is only used in libdrgn/program.c.

Fixes: 6b5ed1d43e ("Allow Program.set_core_dump() and program_from_core_dump() to accept FD")
Signed-off-by: Omar Sandoval <osandov@osandov.com>
This commit is contained in:
Omar Sandoval 2023-10-02 15:51:48 -07:00
parent c85dd74f3e
commit 154b77aa3a

View File

@ -235,8 +235,9 @@ static struct drgn_error *has_kdump_signature(const char *path, int fd,
return NULL;
}
struct drgn_error *
drgn_program_set_core_dump_fd_internal(struct drgn_program *prog, int fd, const char *path)
static struct drgn_error *
drgn_program_set_core_dump_fd_internal(struct drgn_program *prog, int fd,
const char *path)
{
struct drgn_error *err;
GElf_Ehdr ehdr_mem, *ehdr;