X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Fhardware%2Fkecheng-kc-330b%2Fprotocol.c;h=1bca7520c8cddf09fc7f8e485e81f93bdff538d6;hb=069d9f25d9f63e35885a7e4c83e8587f0356d8f9;hp=005b87cba05a50dd28f219dcd14ac07607635650;hpb=55462b8ba9f48931de9b9a7bfbc182a1d113b3b5;p=libsigrok.git
diff --git a/src/hardware/kecheng-kc-330b/protocol.c b/src/hardware/kecheng-kc-330b/protocol.c
index 005b87cb..1bca7520 100644
--- a/src/hardware/kecheng-kc-330b/protocol.c
+++ b/src/hardware/kecheng-kc-330b/protocol.c
@@ -17,6 +17,7 @@
* along with this program. If not, see .
*/
+#include
#include
#include "protocol.h"
@@ -44,7 +45,7 @@ SR_PRIV int kecheng_kc_330b_handle_events(int fd, int revents, void *cb_data)
devc = sdi->priv;
usb = sdi->conn;
di = sdi->driver;
- drvc = di->priv;
+ drvc = di->context;
memset(&tv, 0, sizeof(struct timeval));
libusb_handle_events_timeout_completed(drvc->sr_ctx->libusb_ctx, &tv,