diff options
author | David S. Miller <davem@davemloft.net> | 2011-11-26 16:54:17 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-11-26 16:54:17 -0500 |
commit | 450faacc621dbe0a4945ed8292afd45f4602d263 (patch) | |
tree | 6d783d94dbaec502f90ef5a7355ca87704a3d433 /Documentation/networking/ifenslave.c | |
parent | 49f5ed4250c757cb19d953fcac2737a35ca14d76 (diff) | |
download | talos-obmc-linux-450faacc621dbe0a4945ed8292afd45f4602d263.tar.gz talos-obmc-linux-450faacc621dbe0a4945ed8292afd45f4602d263.zip |
ifenslave: Fix unused variable warnings.
Documentation/networking/ifenslave.c: In function ‘if_getconfig’:
Documentation/networking/ifenslave.c:508:14: warning: variable ‘mtu’ set but not used [-Wunused-but-set-variable]
Documentation/networking/ifenslave.c:508:6: warning: variable ‘metric’ set but not used [-Wunused-but-set-variable]
The purpose of this function is to simply print out the values
it probes, so...
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation/networking/ifenslave.c')
-rw-r--r-- | Documentation/networking/ifenslave.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Documentation/networking/ifenslave.c b/Documentation/networking/ifenslave.c index 65968fbf1e49..ac5debb2f16c 100644 --- a/Documentation/networking/ifenslave.c +++ b/Documentation/networking/ifenslave.c @@ -539,12 +539,14 @@ static int if_getconfig(char *ifname) metric = 0; } else metric = ifr.ifr_metric; + printf("The result of SIOCGIFMETRIC is %d\n", metric); strcpy(ifr.ifr_name, ifname); if (ioctl(skfd, SIOCGIFMTU, &ifr) < 0) mtu = 0; else mtu = ifr.ifr_mtu; + printf("The result of SIOCGIFMTU is %d\n", mtu); strcpy(ifr.ifr_name, ifname); if (ioctl(skfd, SIOCGIFDSTADDR, &ifr) < 0) { |