summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKumar Abhishek <abhishek@theembeddedkitchen.net>2014-05-10 04:32:06 +0700
committerUwe Hermann <uwe@hermann-uwe.de>2014-05-23 23:28:57 +0200
commit4f8e40458fe9c0da90ba4634d248d4edb9f4b5aa (patch)
treef22e287a5b79ab485c25f5cbe5ee6763afaee170
parent783b54337242e5c40da8ffc0fc18babbcd09bc67 (diff)
downloadlibsigrokdecode-4f8e40458fe9c0da90ba4634d248d4edb9f4b5aa.tar.gz
libsigrokdecode-4f8e40458fe9c0da90ba4634d248d4edb9f4b5aa.zip
runtc.c: Fix compiler warning
c was of type char, while getopt returns an int. This caused a compiler warning during build.
-rw-r--r--tests/runtc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/runtc.c b/tests/runtc.c
index cd3d449..059262d 100644
--- a/tests/runtc.c
+++ b/tests/runtc.c
@@ -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;