Project

General

Profile

Actions

Bug #5662

open

Unused variable 'name' in setup_resolv()

Added by Marcel Telka over 8 years ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
cmd - userland programs
Start date:
2015-02-25
Due date:
% Done:

0%

Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage
Gerrit CR:
External Bug:

Description

The local variable 'name' in the setup_resolv() function in ypserv_resolv.c source file is actually a dead code. It is initialized to the hostname here:

167    if (sysinfo(SI_HOSTNAME, name, sizeof (name)-1) == -1) {
168        syslog(LOG_ERR, "can't get local hostname.\\n");
169        (void) kill (*child, SIGINT);
170        endnetconfig(h);
171        *fwding = FALSE;
172        return;
173    }

But other than that it is never used.

No data to display

Actions

Also available in: Atom PDF