svn commit: r230349 - head/usr.sbin/ppp

Eitan Adler eadler at FreeBSD.org
Fri Jan 20 01:37:49 UTC 2012


Author: eadler
Date: Fri Jan 20 01:37:49 2012
New Revision: 230349
URL: http://svn.freebsd.org/changeset/base/230349

Log:
  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

Modified:
  head/usr.sbin/ppp/physical.c

Modified: head/usr.sbin/ppp/physical.c
==============================================================================
--- head/usr.sbin/ppp/physical.c	Fri Jan 20 01:37:39 2012	(r230348)
+++ head/usr.sbin/ppp/physical.c	Fri Jan 20 01:37:49 2012	(r230349)
@@ -585,7 +585,7 @@ iov2physical(struct datalink *dl, struct
              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
   p->desc.Write = physical_DescriptorWrite;
   p->type = PHYS_DIRECT;
   p->dl = dl;
-  len = strlen(_PATH_DEV);
   p->out = NULL;
   p->connect_count = 1;
 


More information about the svn-src-head mailing list