]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
elf-util: drop 'sym_' prefix from cleanup function
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 25 Oct 2025 02:26:39 +0000 (11:26 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 25 Oct 2025 02:26:39 +0000 (11:26 +0900)
src/shared/elf-util.c

index 78f8af5b070a65a3641935cbf0805a7ffd962445..9315562bbada08bb6df9aa78d5cbd1cae3e7f495 100644 (file)
@@ -205,7 +205,7 @@ static void stack_context_done(StackContext *c) {
         }
 }
 
-DEFINE_TRIVIAL_CLEANUP_FUNC_FULL(Elf *, sym_elf_end, NULL);
+DEFINE_TRIVIAL_CLEANUP_FUNC_FULL_RENAME(Elf *, sym_elf_end, elf_endp, NULL);
 
 static int frame_callback(Dwfl_Frame *frame, void *userdata) {
         StackContext *c = ASSERT_PTR(userdata);
@@ -587,7 +587,7 @@ static int module_callback(Dwfl_Module *mod, void **userdata, const char *name,
                 if (!data)
                         continue;
 
-                _cleanup_(sym_elf_endp) Elf *memelf = sym_elf_memory(data->d_buf, data->d_size);
+                _cleanup_(elf_endp) Elf *memelf = sym_elf_memory(data->d_buf, data->d_size);
                 if (!memelf)
                         continue;
                 r = parse_package_metadata(name, id_json, memelf, NULL, c);