From: Kumar Abhishek Date: Fri, 9 May 2014 21:32:06 +0000 (+0700) Subject: runtc.c: Fix compiler warning X-Git-Tag: libsigrokdecode-0.4.0~227 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=4f8e40458fe9c0da90ba4634d248d4edb9f4b5aa;p=libsigrokdecode.git runtc.c: Fix compiler warning c was of type char, while getopt returns an int. This caused a compiler warning during build. --- 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;