util/build-id: Return a pointer rather than copying the data
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 25 Feb 2017 00:29:26 +0000 (16:29 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 1 Mar 2017 23:31:44 +0000 (15:31 -0800)
commite647c4fbd9a186d9df9d5b0e50507f33180214a8
tree2ce033265c97e149d4fa289d90e88e76ae658ea8
parente3d33a23e6cbe2b73b412a56bb4fc4aa6852d081
util/build-id: Return a pointer rather than copying the data

We're about to use the build-id as the starting point for another SHA1
hash in the Intel Vulkan driver, and returning a pointer is far more
convenient.

Reviewed-by: Chad Versace <chadversary@chromium.org>
src/intel/vulkan/anv_device.c
src/util/build_id.c
src/util/build_id.h