mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
remove unnecessary goto's and label
This commit is contained in:
parent
072ce62d23
commit
19ba0bb5fd
1 changed files with 1 additions and 3 deletions
|
|
@ -1794,12 +1794,11 @@ parse_args(isc_boolean_t is_batchfile, int argc, char **argv)
|
|||
perror(batchname);
|
||||
fatal("couldn't open batch file '%s'", batchname);
|
||||
}
|
||||
next_line:
|
||||
while (fgets(batchline, sizeof(batchline), batchfp) != 0) {
|
||||
bargc = 1;
|
||||
if (batchline[0] == '\r' || batchline[0] == '\n'
|
||||
|| batchline[0] == '#' || batchline[0] == ';')
|
||||
goto next_line;
|
||||
continue;
|
||||
input = batchline;
|
||||
bargv[bargc] = next_token(&input, " \t\r\n");
|
||||
while ((bargv[bargc] != NULL) && (bargc < 14)) {
|
||||
|
|
@ -1809,7 +1808,6 @@ parse_args(isc_boolean_t is_batchfile, int argc, char **argv)
|
|||
|
||||
bargv[0] = argv[0];
|
||||
parse_args(ISC_TRUE, bargc, (char **)bargv);
|
||||
goto next_line;
|
||||
}
|
||||
if (batchfp != stdin)
|
||||
fclose(batchfp);
|
||||
|
|
|
|||
Loading…
Reference in a new issue