summaryrefslogtreecommitdiffstats
path: root/src/compiler/blob.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2017-10-11 12:10:08 -0700
committerJason Ekstrand <[email protected]>2017-10-12 21:47:06 -0700
commit6a41a52e625537d1072c4f605fb1ed651ac0b99d (patch)
tree6ed851f11fd61424af52061e174dd38cbef94c53 /src/compiler/blob.c
parent4d56ff0a714adfd763149ce98e3fa7437e14abac (diff)
compiler/blob: Make some parameters void instead of uint8_t
There are certain advantages to using uint8_t internally such as well-defined arithmetic on all platforms. However, interfaces that work in terms of raw data should use a void* type. Reviewed-by: Nicolai Hähnle <[email protected]> Reviewed-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/compiler/blob.c')
-rw-r--r--src/compiler/blob.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/compiler/blob.c b/src/compiler/blob.c
index 5c94beed842..f0fa85e5beb 100644
--- a/src/compiler/blob.c
+++ b/src/compiler/blob.c
@@ -238,7 +238,7 @@ blob_write_string(struct blob *blob, const char *str)
}
void
-blob_reader_init(struct blob_reader *blob, const uint8_t *data, size_t size)
+blob_reader_init(struct blob_reader *blob, const void *data, size_t size)
{
blob->data = data;
blob->end = blob->data + size;
@@ -280,9 +280,9 @@ blob_read_bytes(struct blob_reader *blob, size_t size)
}
void
-blob_copy_bytes(struct blob_reader *blob, uint8_t *dest, size_t size)
+blob_copy_bytes(struct blob_reader *blob, void *dest, size_t size)
{
- const uint8_t *bytes;
+ const void *bytes;
bytes = blob_read_bytes(blob, size);
if (bytes == NULL)