Mercurial > ecos
changeset 3125:24461b5331ea
Fix compiler warning by removing 'netmask' variable which is set but
then never used. [ Bugzilla 1001516 ]
| author | grante |
|---|---|
| date | Tue, 13 Mar 2012 14:46:13 +0000 |
| parents | e475d3618330 |
| children | 96f5931c93e1 |
| files | packages/net/common/current/ChangeLog packages/net/common/current/src/bootp_support.c |
| diffstat | 2 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/packages/net/common/current/ChangeLog +++ b/packages/net/common/current/ChangeLog @@ -1,3 +1,9 @@ +2012-03-13 Grant Edwards <grant.b.edwards@gmail.com> + + * src/bootp_support.c (init_net): Fix compiler warning by removing + 'netmask' variable which is set but then never used. + [ Bugzilla 1001516 ] + 2012-03-06 Grant Edwards <grant.b.edwards@gmail.com> * current/src/inet_ntop.c (inet_ntop6): Fixed compiler warnings
--- a/packages/net/common/current/src/bootp_support.c +++ b/packages/net/common/current/src/bootp_support.c @@ -449,7 +449,7 @@ init_net(const char *intf, struct bootp int s=-1; int one = 1; struct ecos_rtentry route; - struct in_addr netmask, gateway; + struct in_addr gateway; unsigned int length; int retcode = false; @@ -481,7 +481,6 @@ init_net(const char *intf, struct bootp length = sizeof(addrp->sin_addr); if (get_bootp_option(bp, TAG_SUBNET_MASK, &addrp->sin_addr,&length)) { - netmask = addrp->sin_addr; if (ioctl(s, SIOCSIFNETMASK, &ifr)) { perror("SIOCSIFNETMASK"); goto out;
