X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=tests%2Fruntc.c;fp=tests%2Fruntc.c;h=b891b3b026f66837088270e5e4698eb01b465c09;hb=2de277b88e7e7ff49c5a2933da36cb28d3f79481;hp=9ba51f4a4ca8f4453f78e3aca70d812bd87e6236;hpb=00bebae3f43a6c0c577d31c7c0b58faeb002478b;p=libsigrokdecode.git diff --git a/tests/runtc.c b/tests/runtc.c index 9ba51f4..b891b3b 100644 --- a/tests/runtc.c +++ b/tests/runtc.c @@ -36,7 +36,6 @@ #endif #include "../config.h" - int debug = FALSE; int statistics = FALSE; @@ -406,7 +405,7 @@ static int run_testcase(char *infile, GSList *pdlist, struct output *op) /* Only annotations and binary can have a class. */ return FALSE; idx = 0; - while(l) { + while (l) { decoder_class = l->data; if (!strcmp(decoder_class[0], op->class)) { op->class_idx = idx; @@ -456,7 +455,7 @@ int main(int argc, char **argv) pdlist = NULL; opt_infile = NULL; pd = NULL; - while((c = getopt(argc, argv, "dP:p:o:i:O:f:S")) != -1) { + while ((c = getopt(argc, argv, "dP:p:o:i:O:f:S")) != -1) { switch(c) { case 'd': debug = TRUE; @@ -559,5 +558,3 @@ int main(int argc, char **argv) return ret; } - -