[master] clean up gcc -Wshadow warnings
4039. [cleanup] Cleaned up warnings from gcc -Wshadow. [RT #37381]
This commit is contained in:
@@ -61,7 +61,7 @@ static isc_appctx_t *actx = NULL;
|
||||
static isc_mem_t *mctx = NULL;
|
||||
static unsigned int outstanding_probes = 0;
|
||||
const char *cacheserver = "127.0.0.1";
|
||||
static FILE *fp;
|
||||
static FILE *input;
|
||||
|
||||
typedef enum {
|
||||
none,
|
||||
@@ -979,7 +979,7 @@ probe_domain(struct probe_trans *trans) {
|
||||
REQUIRE(outstanding_probes < MAX_PROBES);
|
||||
|
||||
/* Construct domain */
|
||||
cp = fgets(buf, sizeof(buf), fp);
|
||||
cp = fgets(buf, sizeof(buf), input);
|
||||
if (cp == NULL)
|
||||
return (ISC_R_NOMORE);
|
||||
if ((cp = strchr(buf, '\n')) != NULL) /* zap NL if any */
|
||||
@@ -1128,10 +1128,10 @@ main(int argc, char *argv[]) {
|
||||
|
||||
/* Open input file */
|
||||
if (argc == 0)
|
||||
fp = stdin;
|
||||
input = stdin;
|
||||
else {
|
||||
fp = fopen(argv[0], "r");
|
||||
if (fp == NULL) {
|
||||
input = fopen(argv[0], "r");
|
||||
if (input == NULL) {
|
||||
fprintf(stderr, "failed to open input file: %s\n",
|
||||
argv[0]);
|
||||
exit(1);
|
||||
|
||||
Reference in New Issue
Block a user