From: Mark Andrews Date: Thu, 19 Feb 2015 04:53:20 +0000 (+1100) Subject: remove unnecessary goto's and label X-Git-Tag: v9.11.0a1~994 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=19ba0bb5fd81de053b700761b4482f2cf8821e1e;p=thirdparty%2Fbind9.git remove unnecessary goto's and label --- diff --git a/bin/tools/mdig.c b/bin/tools/mdig.c index 01e99347d50..bdfa578035d 100644 --- a/bin/tools/mdig.c +++ b/bin/tools/mdig.c @@ -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);