summaryrefslogtreecommitdiffstats
path: root/sys/nfsclient
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-05-31 20:05:25 +0000
committerphk <phk@FreeBSD.org>2003-05-31 20:05:25 +0000
commit174a772296e865feb795aa29a982447fa447cfa9 (patch)
tree6c5c14e6b5eea47ca087d53c72d0fc742cdd2c14 /sys/nfsclient
parent37e91b880ac8b9e91add1ad4bf3510fa9bdd7366 (diff)
downloadFreeBSD-src-174a772296e865feb795aa29a982447fa447cfa9.zip
FreeBSD-src-174a772296e865feb795aa29a982447fa447cfa9.tar.gz
Remove unsed variables.
Add explicit breaks to switch Found by: FlexeLint
Diffstat (limited to 'sys/nfsclient')
-rw-r--r--sys/nfsclient/bootp_subr.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/sys/nfsclient/bootp_subr.c b/sys/nfsclient/bootp_subr.c
index bfa419e..903aee0 100644
--- a/sys/nfsclient/bootp_subr.c
+++ b/sys/nfsclient/bootp_subr.c
@@ -1380,8 +1380,9 @@ bootpc_compose_query(struct bootpc_ifcontext *ifctx,
leasetime = htonl(300);
memcpy(vendp, &leasetime, 4);
vendp += 4;
+ break;
default:
- ;
+ break;
}
*vendp = TAG_END;
@@ -1444,9 +1445,6 @@ static unsigned char *
bootpc_tag(struct bootpc_tagcontext *tctx,
struct bootp_packet *bp, int len, int tag)
{
- unsigned char *j;
- unsigned char *ej;
-
tctx->overload = 0;
tctx->badopt = 0;
tctx->badtag = 0;
@@ -1456,9 +1454,6 @@ bootpc_tag(struct bootpc_tagcontext *tctx,
if (bootpc_hascookie(bp) == 0)
return NULL;
- j = &bp->vend[4];
- ej = (unsigned char *) bp + len;
-
bootpc_tag_helper(tctx, &bp->vend[4],
(unsigned char *) bp + len - &bp->vend[4], tag);
OpenPOWER on IntegriCloud