From 65d85f60341be59fb1049167c6ca2f88bafa030a Mon Sep 17 00:00:00 2001 From: "tg(x)" <*@tg-x.net> 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;