From: Bert Vermeulen Date: Sat, 18 Jun 2011 22:55:36 +0000 (+0200) Subject: fix parameter type X-Git-Tag: libsigrok-0.1.0~244 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=60eb1eb5820be30671729c08b371b0ab3c14c860;p=libsigrok.git fix parameter type --- diff --git a/filter.c b/filter.c index 7c4fd0b5..80cef6ab 100644 --- a/filter.c +++ b/filter.c @@ -39,8 +39,8 @@ * @return SR_OK upon success, SR_ERR_MALLOC upon memory allocation errors. */ int sr_filter_probes(int in_unitsize, int out_unitsize, int *probelist, - const char *data_in, uint64_t length_in, char **data_out, - uint64_t *length_out) + const unsigned char *data_in, uint64_t length_in, + char **data_out, uint64_t *length_out) { unsigned int in_offset, out_offset; int num_enabled_probes, out_bit, i; diff --git a/sigrok-proto.h b/sigrok-proto.h index ad7068e5..ee099ecc 100644 --- a/sigrok-proto.h +++ b/sigrok-proto.h @@ -61,8 +61,8 @@ gboolean sr_device_has_hwcap(struct sr_device *device, int hwcap); /*--- filter.c --------------------------------------------------------------*/ int sr_filter_probes(int in_unitsize, int out_unitsize, int *probelist, - const char *data_in, uint64_t length_in, char **data_out, - uint64_t *length_out); + const unsigned char *data_in, uint64_t length_in, + char **data_out, uint64_t *length_out); /*--- hwplugin.c ------------------------------------------------------------*/