From dc0cb6998dde6b74c24d991133f774b90e211a92 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Fri, 24 Nov 2017 22:22:25 -0800 Subject: Add "by_name" to function name In preparation for adding a "by_symbol" equivalent. --- build-id.c | 2 +- build-id.h | 2 +- so-test.c | 3 ++- test.c | 2 +- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/build-id.c b/build-id.c index 88c6527..96bbf3e 100644 --- a/build-id.c +++ b/build-id.c @@ -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, diff --git a/build-id.h b/build-id.h index 6828875..8505d9b 100644 --- a/build-id.h +++ b/build-id.h @@ -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); diff --git a/so-test.c b/so-test.c index fb24a4d..824191c 100644 --- a/so-test.c +++ b/so-test.c @@ -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; diff --git a/test.c b/test.c index 40d8a51..f381fd2 100644 --- a/test.c +++ b/test.c @@ -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; -- cgit v1.2.3