]> sigrok.org Git - libsigrokdecode.git/blobdiff - type_logic.c
Add a missing #include.
[libsigrokdecode.git] / type_logic.c
index ded0062456467658f8645353c89e0a1671c30a93..80e49f163ed903014457057b975b037b50859b31 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * This file is part of the sigrok project.
+ * This file is part of the libsigrokdecode project.
  *
  * Copyright (C) 2012 Bert Vermeulen <bert@biot.com>
  *
@@ -17,7 +17,7 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-#include "sigrokdecode.h" /* First, so we avoid a _POSIX_C_SOURCE warning. */
+#include "libsigrokdecode.h" /* First, so we avoid a _POSIX_C_SOURCE warning. */
 #include "config.h"
 #include <inttypes.h>
 #include <string.h>
@@ -29,11 +29,11 @@ static PyObject *srd_logic_iter(PyObject *self)
 
 static PyObject *srd_logic_iternext(PyObject *self)
 {
-       int i;
-       PyObject *py_samplenum, *py_samples;
        srd_logic *logic;
+       PyObject *py_samplenum, *py_samples;
        uint64_t sample;
        uint8_t probe_samples[SRD_MAX_NUM_PROBES + 1];
+       int i;
 
        logic = (srd_logic *)self;
        if (logic->itercnt >= logic->inbuflen / logic->di->data_unitsize) {