diff options
author | Matt Turner <mattst88@gmail.com> | 2017-11-24 22:22:25 -0800 |
---|---|---|
committer | Matt Turner <mattst88@gmail.com> | 2017-11-24 23:37:07 -0800 |
commit | dc0cb6998dde6b74c24d991133f774b90e211a92 (patch) | |
tree | 5d3417517ab9edd661b6800788754f22f2b84aeb | |
parent | 58bc7b5b89d0a64b1b0b8fb340ffa5730a4b9dfc (diff) |
Add "by_name" to function name
In preparation for adding a "by_symbol" equivalent.
-rw-r--r-- | build-id.c | 2 | ||||
-rw-r--r-- | build-id.h | 2 | ||||
-rw-r--r-- | so-test.c | 3 | ||||
-rw-r--r-- | test.c | 2 |
4 files changed, 5 insertions, 4 deletions
@@ -80,7 +80,7 @@ build_id_find_nhdr_callback(struct dl_phdr_info *info, size_t size, void *data_) } const struct build_id_note * -build_id_find_nhdr(const char *name) +build_id_find_nhdr_by_name(const char *name) { struct callback_data data = { .name = name, @@ -28,7 +28,7 @@ struct build_id_note; const struct build_id_note * -build_id_find_nhdr(const char *name); +build_id_find_nhdr_by_name(const char *name); ElfW(Word) build_id_length(const struct build_id_note *note); @@ -30,7 +30,8 @@ int main(int argc, char *argv[]) { - const struct build_id_note *note = build_id_find_nhdr("./libbuild-id.so"); + const struct build_id_note *note = + build_id_find_nhdr_by_name("./libbuild-id.so"); if (!note) return -1; @@ -30,7 +30,7 @@ int main(int argc, char *argv[]) { - const struct build_id_note *note = build_id_find_nhdr(""); + const struct build_id_note *note = build_id_find_nhdr_by_name(""); if (!note) return -1; |