Actions
Bug #5662
openUnused variable 'name' in setup_resolv()
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