| 670 | } |
| 671 | |
| 672 | static int |
| 673 | parse_dir_timeout(char **conf) |
| 674 | { |
| 675 | char *tok, *endtok; |
| 676 | long secs; |
| 677 | int error; |
| 678 | |
| 679 | error = parse_token(conf, &tok); |
| 680 | if (error) |
| 681 | return (error); |
| 682 | |
| 683 | secs = strtol(tok, &endtok, 0); |
| 684 | error = (secs < 0 || *endtok != '\0') ? EINVAL : 0; |
| 685 | if (!error) |
| 686 | root_mount_timeout = secs; |
| 687 | free(tok, M_TEMP); |
| 688 | return (error); |
| 689 | } |
| 690 | |
| 691 | static int |
| 692 | parse_directive(char **conf) |
no test coverage detected