]> sigrok.org Git - libsigrokdecode.git/commitdiff
runtc.c: Fix compiler warning
authorKumar Abhishek <redacted>
Fri, 9 May 2014 21:32:06 +0000 (04:32 +0700)
committerUwe Hermann <redacted>
Fri, 23 May 2014 21:28:57 +0000 (23:28 +0200)
c was of type char, while getopt returns an int. This
caused a compiler warning during build.

tests/runtc.c

index cd3d44983fe0598d9d609ea4e8dea5683c9c125a..059262d3918660a83a9c5058bfa6ff802fa2388d 100644 (file)
@@ -688,8 +688,8 @@ int main(int argc, char **argv)
        struct channel *channel;
        struct option *option;
        struct output *op;
-       int ret;
-       char c, *opt_infile, **kv, **opstr;
+       int ret, c;
+       char *opt_infile, **kv, **opstr;
 
        op = malloc(sizeof(struct output));
        op->pd = NULL;