]> sigrok.org Git - sigrok-util.git/blobdiff - source/drv-protocol.c
new-driver: Update to latest API changes.
[sigrok-util.git] / source / drv-protocol.c
index f89474470cdc01a06e2adef59b3f7e1b7373547f..bc235036ec021a53143a4058a6caa750f0a3b1a1 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * This file is part of the sigrok project.
+ * This file is part of the libsigrok project.
  *
  * Copyright (C) ${year} ${author} <${email}>
  *
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+#include <stdlib.h>
 #include <glib.h>
 #include "libsigrok.h"
 #include "libsigrok-internal.h"
-#include "config.h"
 #include "protocol.h"
-#include <stdlib.h>
-
 
 SR_PRIV int ${lib}_receive_data(int fd, int revents, void *cb_data)
 {
+       (void)fd;
+
        const struct sr_dev_inst *sdi;
        struct dev_context *devc;
 
@@ -37,7 +37,7 @@ SR_PRIV int ${lib}_receive_data(int fd, int revents, void *cb_data)
                return TRUE;
 
        if (revents == G_IO_IN) {
-        /* TODO */
+               /* TODO */
        }
 
        return TRUE;