util/build-id: Return a pointer rather than copying the data
[mesa.git] / src / util / build_id.c
index cc0f852730289dbc5259aaf7968e9da7a7aef8db..c53e71ddfd1b07a656f804739178743f15bb8636 100644 (file)
@@ -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