]> sigrok.org Git - libsigrok.git/blobdiff - src/hardware/rdtech-tc/protocol.h
rdtech-tc: use size_t for memory sizes and indices
[libsigrok.git] / src / hardware / rdtech-tc / protocol.h
index 963c7765623bf654514a7c273660b5022da341f4..4692ec4022f004fe223abba239050041ec21c486 100644 (file)
@@ -37,13 +37,12 @@ struct dev_context {
        struct rdtech_dev_info dev_info;
        const struct binary_analog_channel *channels;
        struct sr_sw_limits limits;
-
        uint8_t buf[RDTECH_TC_BUFSIZE];
-       int buflen;
+       size_t buflen;
        int64_t cmd_sent_at;
 };
 
-SR_PRIV int rdtech_tc_probe(struct sr_serial_dev_inst *serial, struct dev_context  *devc);
+SR_PRIV int rdtech_tc_probe(struct sr_serial_dev_inst *serial, struct dev_context *devc);
 SR_PRIV int rdtech_tc_receive_data(int fd, int revents, void *cb_data);
 SR_PRIV int rdtech_tc_poll(const struct sr_dev_inst *sdi);