]> sigrok.org Git - libsigrok.git/commitdiff
siglent-sds: Fix multiple compiler warnings.
authorUwe Hermann <redacted>
Sun, 18 Feb 2018 16:40:59 +0000 (17:40 +0100)
committerUwe Hermann <redacted>
Sun, 18 Feb 2018 16:40:59 +0000 (17:40 +0100)
src/hardware/siglent-sds/api.c

index 9810aa1b3a3d23aea890deb60fc40c4930c904a5..ce27b1e29a23c7a1259474a3f9b8f3fa20fb1d92 100644 (file)
@@ -527,11 +527,11 @@ static int config_set(uint32_t key, GVariant *data,
        struct dev_context *devc;
        uint64_t p;
        double t_dbl;
-       unsigned int i;
+       int i;
        int ret, idx;
        const char *tmp_str;
        char buffer[16];
-       char *cmd;
+       char *cmd = "";
        char cmd4[4];
 
        devc = sdi->priv;