comparison rvinterf/etmsync/dispatch.c @ 281:082d12a1651e

fc-fsio: single command invokation works
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Mon, 24 Feb 2014 07:44:33 +0000
parents f304f9bcde3b
children 69e8ae2b5ba2
comparison
equal deleted inserted replaced
280:f304f9bcde3b 281:082d12a1651e
71 break; 71 break;
72 if (!tp->func) { 72 if (!tp->func) {
73 fprintf(stderr, "error: no such command\n"); 73 fprintf(stderr, "error: no such command\n");
74 return(ERROR_USAGE); 74 return(ERROR_USAGE);
75 } 75 }
76 if (argc - 1 >= tp->maxargs) { 76 if (argc - 1 > tp->maxargs) {
77 fprintf(stderr, "error: too many arguments\n"); 77 fprintf(stderr, "error: too many arguments\n");
78 return(ERROR_USAGE); 78 return(ERROR_USAGE);
79 } 79 }
80 if (argc - 1 < tp->minargs) { 80 if (argc - 1 < tp->minargs) {
81 fprintf(stderr, "error: too few arguments\n"); 81 fprintf(stderr, "error: too few arguments\n");