Fix warning when compiling with gcc46:
error: variable 'hostname' set but not used Approved by: dim, cperciva (mentor, blanket for pre-mentorship already-approved commits) MFC after: 3 days
This commit is contained in:
parent
23b3566364
commit
9840ec1752
@ -122,7 +122,7 @@ int
|
||||
main(int argc, char *argv[])
|
||||
{
|
||||
int op;
|
||||
char *ifname, *hostname, *name;
|
||||
char *ifname, *name;
|
||||
|
||||
int aflag = 0; /* listen on "all" interfaces */
|
||||
int fflag = 0; /* don't fork */
|
||||
@ -174,7 +174,6 @@ main(int argc, char *argv[])
|
||||
argv += optind;
|
||||
|
||||
ifname = (aflag == 0) ? argv[0] : NULL;
|
||||
hostname = ifname ? argv[1] : argv[0];
|
||||
|
||||
if ((aflag && ifname) || (!aflag && ifname == NULL))
|
||||
usage();
|
||||
|
Loading…
x
Reference in New Issue
Block a user