X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=source%2Fdrv-protocol.c;h=47ade0d45250e4721b683ba4454cd0c22f0e5d9b;hb=f16da0bdad02c5f6281d66a144f6de26daef1d57;hp=6ec9d8908540b9aea8d2a9b3598bc775a157f83a;hpb=4b527a01e5fbcf7fa69dcfa7a3ad2422bf9087b6;p=sigrok-util.git
diff --git a/source/drv-protocol.c b/source/drv-protocol.c
index 6ec9d89..47ade0d 100644
--- a/source/drv-protocol.c
+++ b/source/drv-protocol.c
@@ -17,10 +17,6 @@
* along with this program. If not, see .
*/
-#include
-#include
-#include "libsigrok.h"
-#include "libsigrok-internal.h"
#include "protocol.h"
SR_PRIV int ${lib}_receive_data(int fd, int revents, void *cb_data)
@@ -28,6 +24,8 @@ SR_PRIV int ${lib}_receive_data(int fd, int revents, void *cb_data)
const struct sr_dev_inst *sdi;
struct dev_context *devc;
+ (void)fd;
+
if (!(sdi = cb_data))
return TRUE;