]> sigrok.org Git - libsigrok.git/commitdiff
fix parameter type
authorBert Vermeulen <redacted>
Sat, 18 Jun 2011 22:55:36 +0000 (00:55 +0200)
committerBert Vermeulen <redacted>
Sat, 18 Jun 2011 22:55:36 +0000 (00:55 +0200)
filter.c
sigrok-proto.h

index 7c4fd0b5b0444478a9ee54a3066267c47b9b218b..80cef6abc47fc67f0f546148f85993a9a851f3e9 100644 (file)
--- 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;
index ad7068e5b1a7d1b32a9eae79434a3444bba94e8b..ee099eccd9ef34457860f4adc99a415182f2d057 100644 (file)
@@ -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 ------------------------------------------------------------*/