From 2bb133e75297f188c25af993fffb76ef3e2db1d8 Mon Sep 17 00:00:00 2001 From: Eitan Adler Date: Fri, 20 Jan 2012 01:37:49 +0000 Subject: [PATCH] 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 --- usr.sbin/ppp/physical.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/usr.sbin/ppp/physical.c b/usr.sbin/ppp/physical.c index 4083aa93eac..e2892aebcc0 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;