提交 25998a7d 编写于 作者: H Hui Li

[TD-1076]

上级 012c2730
...@@ -66,9 +66,9 @@ static error_t parse_opt(int key, char *arg, struct argp_state *state) { ...@@ -66,9 +66,9 @@ static error_t parse_opt(int key, char *arg, struct argp_state *state) {
case 'l': case 'l':
arguments->pktLen = atoi(arg); arguments->pktLen = atoi(arg);
break; break;
default: default:
printf("unknow parameter!\n"); return ARGP_ERR_UNKNOWN;
break;
} }
return 0; return 0;
} }
......
...@@ -66,8 +66,9 @@ static error_t parse_opt(int key, char *arg, struct argp_state *state) { ...@@ -66,8 +66,9 @@ static error_t parse_opt(int key, char *arg, struct argp_state *state) {
case 'l': case 'l':
arguments->pktLen = atoi(arg); arguments->pktLen = atoi(arg);
break; break;
default: default:
break; return ARGP_ERR_UNKNOWN;
} }
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册