From 6529f303805d5ccf0d8ab8be9e68d9591f8c697e Mon Sep 17 00:00:00 2001 From: Gabor Adam Toth Date: Sun, 15 May 2011 00:17:33 +0200 Subject: [PATCH] + --- test/testPsyc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/testPsyc.c b/test/testPsyc.c index fb1f4cc..9a3c868 100644 --- a/test/testPsyc.c +++ b/test/testPsyc.c @@ -28,7 +28,7 @@ psycPacket packets[NUM_PARSERS]; psycModifier routing[NUM_PARSERS][ROUTING_LINES]; psycModifier entity[NUM_PARSERS][ENTITY_LINES]; -int contbytes = 0, last_ret = 0; +int contbytes, last_ret; int main (int argc, char **argv) { int c; @@ -36,10 +36,10 @@ int main (int argc, char **argv) { switch (c) { case 'f': filename = optarg; break; case 'p': port = optarg; - if (atoi(optarg) <= 0) { printf("-p: error, should be > 0\n"); exit(-1); } + if (atoi(optarg) <= 0) { printf("-%c: error, should be > 0\n", c); exit(-1); } break; case 'b': recv_buf_size = atoi(optarg); - if (atoi(optarg) <= 0) { printf("-b: error, should be > 0\n"); exit(-1); } + if (atoi(optarg) <= 0) { printf("-%c: error, should be > 0\n", c); exit(-1); } break; case 'm': parse_multiple = 1; break; case 'n': no_render = 1; break;