bootpc_decode_reply: eliminiate write only variable ip
Sponsored by: Netflix
This commit is contained in:
parent
d6f6985494
commit
b64a484592
@ -1335,7 +1335,6 @@ bootpc_decode_reply(struct nfsv3_diskless *nd, struct bootpc_ifcontext *ifctx,
|
|||||||
struct bootpc_globalcontext *gctx)
|
struct bootpc_globalcontext *gctx)
|
||||||
{
|
{
|
||||||
char *p, *s;
|
char *p, *s;
|
||||||
unsigned int ip;
|
|
||||||
|
|
||||||
ifctx->gotgw = 0;
|
ifctx->gotgw = 0;
|
||||||
ifctx->gotnetmask = 0;
|
ifctx->gotnetmask = 0;
|
||||||
@ -1346,8 +1345,6 @@ bootpc_decode_reply(struct nfsv3_diskless *nd, struct bootpc_ifcontext *ifctx,
|
|||||||
|
|
||||||
ifctx->myaddr.sin_addr = ifctx->reply.yiaddr;
|
ifctx->myaddr.sin_addr = ifctx->reply.yiaddr;
|
||||||
|
|
||||||
ip = ntohl(ifctx->myaddr.sin_addr.s_addr);
|
|
||||||
|
|
||||||
printf("%s at ", ifctx->ireq.ifr_name);
|
printf("%s at ", ifctx->ireq.ifr_name);
|
||||||
print_sin_addr(&ifctx->myaddr);
|
print_sin_addr(&ifctx->myaddr);
|
||||||
printf(" server ");
|
printf(" server ");
|
||||||
|
Loading…
Reference in New Issue
Block a user