/*
- * This file is part of the sigrok project.
+ * This file is part of the libsigrok project.
*
* Copyright (C) 2011 Daniel Ribeiro <drwyrm@gmail.com>
* Copyright (C) 2012 Renato Caldas <rmsc@fe.up.pt>
{
unsigned int u1, u2, u3, u4, u5, u6;
- iProduct = iProduct;
+ (void)iProduct;
+
/* FIXME: This code is in the original app, but I think its
* used only for the GUI */
/* if (strstr(iProduct, "REV_02") || strstr(iProduct, "REV_03"))
struct dev_context *devc;
devc = sdi->priv;
- sr_source_remove(devc->serial->fd);
+ serial_source_remove(devc->serial);
/* Terminate session */
packet.type = SR_DF_END;