summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp
diff options
context:
space:
mode:
authoreadler <eadler@FreeBSD.org>2012-01-20 01:37:49 +0000
committereadler <eadler@FreeBSD.org>2012-01-20 01:37:49 +0000
commitf90254c48eb93cb707756d1606058cd3256c9e1b (patch)
treeed6afedd8bbe964c4d88dc34b2906cace812afbc /usr.sbin/ppp
parent925e5603f699590d2d08f25e9ea3dd6a99569d51 (diff)
downloadFreeBSD-src-f90254c48eb93cb707756d1606058cd3256c9e1b.zip
FreeBSD-src-f90254c48eb93cb707756d1606058cd3256c9e1b.tar.gz
Fix warning when compiling with gcc46:
error: variable 'len' set but not used Approved by: dim, cperciva (mentor, blanket for pre-mentorship already-approved commits) MFC after: 3 days
Diffstat (limited to 'usr.sbin/ppp')
-rw-r--r--usr.sbin/ppp/physical.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/ppp/physical.c b/usr.sbin/ppp/physical.c
index 4083aa9..e2892ae 100644
--- a/usr.sbin/ppp/physical.c
+++ b/usr.sbin/ppp/physical.c
@@ -585,7 +585,7 @@ iov2physical(struct datalink *dl, struct iovec *iov, int *niov, int maxiov,
int fd, int *auxfd, int *nauxfd)
{
struct physical *p;
- int len, type;
+ int type;
unsigned h;
p = (struct physical *)iov[(*niov)++].iov_base;
@@ -598,7 +598,6 @@ iov2physical(struct datalink *dl, struct iovec *iov, int *niov, int maxiov,
p->desc.Write = physical_DescriptorWrite;
p->type = PHYS_DIRECT;
p->dl = dl;
- len = strlen(_PATH_DEV);
p->out = NULL;
p->connect_count = 1;
OpenPOWER on IntegriCloud