From: Mathieu Pilato Date: Fri, 31 Mar 2023 20:04:05 +0000 (+0200) Subject: binary_helpers: Reflect that bv_get_value() takes bytes as input X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=1fa04876398ded830b40e44c8055e01c5e2fb977;p=libsigrok.git binary_helpers: Reflect that bv_get_value() takes bytes as input Prefer uint8_t pointers over void pointers in the bv_get_value() signature for improved awareness. --- diff --git a/src/binary_helpers.c b/src/binary_helpers.c index e15787e9..e8547a01 100644 --- a/src/binary_helpers.c +++ b/src/binary_helpers.c @@ -23,7 +23,7 @@ #include "libsigrok-internal.h" SR_PRIV int bv_get_value(float *out, const struct binary_value_spec *spec, - const void *data, size_t length) + const uint8_t *data, size_t length) { float value; diff --git a/src/libsigrok-internal.h b/src/libsigrok-internal.h index bb7e2a9c..46865efc 100644 --- a/src/libsigrok-internal.h +++ b/src/libsigrok-internal.h @@ -2250,7 +2250,7 @@ struct binary_value_spec { * @return SR_OK on success, SR_ERR_* error code on failure. */ SR_PRIV int bv_get_value(float *out, const struct binary_value_spec *spec, - const void *data, size_t length); + const uint8_t *data, size_t length); /*--- crc.c -----------------------------------------------------------------*/