From 5d44a4d9ba72a87d82d53fd44f41449f4464ac76 Mon Sep 17 00:00:00 2001 From: TLINDEN Date: Wed, 1 Apr 2015 20:21:03 +0200 Subject: [PATCH] fix #8, unfortunately used symbol already in use by system, globally --- tests/decodertest.c | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/tests/decodertest.c b/tests/decodertest.c index 0b099ce..1bf40ff 100644 --- a/tests/decodertest.c +++ b/tests/decodertest.c @@ -7,20 +7,23 @@ #define TRUE 1 #define FALSE 0 -static const char *tell[] = { - NULL, - "Headers: no, Newlines: yes, Compliant: yes", - "Headers: no, Newlines: no, Compliant: yes", - "Headers: no, Newlines: yes, Compliant: yes - no begin header", - "Headers: yes, Newlines: yes, Compliant: no - empty comment", - "Headers: yes, Newlines: yes, Compliant: no - missing z85 char", -}; + int main(int argc, char **argv) { int ret; size_t clearlen = 256; size_t zlen; char *z85; + + static const char *tellmsg[] = { + NULL, + "Headers: no, Newlines: yes, Compliant: yes", + "Headers: no, Newlines: no, Compliant: yes", + "Headers: no, Newlines: yes, Compliant: yes - no begin header", + "Headers: yes, Newlines: yes, Compliant: no - empty comment", + "Headers: yes, Newlines: yes, Compliant: no - missing z85 char", + }; + PCPCTX *ptx = ptx_new(); if(argc < 2) { @@ -101,7 +104,7 @@ int main(int argc, char **argv) { /* control output */ - fprintf(stderr, "%s:\n\n%s\n", tell[mode], buffer_get_str(zdone)); + fprintf(stderr, "%s:\n\n%s\n", tellmsg[mode], buffer_get_str(zdone)); /* line decoder */