Update goodbyedpi.c
This commit is contained in:
parent
517fd5729b
commit
5d30bd6f50
|
|
@ -808,15 +808,15 @@ int main(int argc, char *argv[]) {
|
||||||
char *autottl_copy = strdup(optarg);
|
char *autottl_copy = strdup(optarg);
|
||||||
if (strchr(autottl_copy, '-')) {
|
if (strchr(autottl_copy, '-')) {
|
||||||
// token "-" found, start X-Y parser
|
// token "-" found, start X-Y parser
|
||||||
char *autottl_current = strtok_s(autottl_copy, "-");
|
char *autottl_current = strtok(autottl_copy, "-");
|
||||||
auto_ttl_1 = atoub(autottl_current, "Set Auto TTL parameter error!");
|
auto_ttl_1 = atoub(autottl_current, "Set Auto TTL parameter error!");
|
||||||
autottl_current = strtok_s(NULL, "-");
|
autottl_current = strtok(NULL, "-");
|
||||||
if (!autottl_current) {
|
if (!autottl_current) {
|
||||||
puts("Set Auto TTL parameter error!");
|
puts("Set Auto TTL parameter error!");
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
auto_ttl_2 = atoub(autottl_current, "Set Auto TTL parameter error!");
|
auto_ttl_2 = atoub(autottl_current, "Set Auto TTL parameter error!");
|
||||||
autottl_current = strtok_s(NULL, "-");
|
autottl_current = strtok(NULL, "-");
|
||||||
if (!autottl_current) {
|
if (!autottl_current) {
|
||||||
puts("Set Auto TTL parameter error!");
|
puts("Set Auto TTL parameter error!");
|
||||||
exit(EXIT_FAILURE);
|
exit(EXIT_FAILURE);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue