diff options
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/build_id.c | 7 | ||||
-rw-r--r-- | src/util/build_id.h | 5 |
2 files changed, 5 insertions, 7 deletions
diff --git a/src/util/build_id.c b/src/util/build_id.c index cc0f8527302..c53e71ddfd1 100644 --- a/src/util/build_id.c +++ b/src/util/build_id.c @@ -107,11 +107,10 @@ build_id_length(const struct build_id_note *note) return note->nhdr.n_descsz; } -void -build_id_read(const struct build_id_note *note, - unsigned char *build_id, size_t n) +const uint8_t * +build_id_data(const struct build_id_note *note) { - memcpy(build_id, note->build_id, n); + return note->build_id; } #endif diff --git a/src/util/build_id.h b/src/util/build_id.h index 39bf9b016fd..551ac6989bc 100644 --- a/src/util/build_id.h +++ b/src/util/build_id.h @@ -31,8 +31,7 @@ build_id_find_nhdr(const char *filename); unsigned build_id_length(const struct build_id_note *note); -void -build_id_read(const struct build_id_note *note, - unsigned char *build_id, size_t n); +const uint8_t * +build_id_data(const struct build_id_note *note); #endif |