mirror of
git://git.psyc.eu/libpsyc
synced 2024-08-15 03:19:02 +00:00
+
This commit is contained in:
parent
4b9fba98d4
commit
65d85f6034
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue