Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Jan 2012 01:37:49 +0000 (UTC)
From:      Eitan Adler <eadler@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r230349 - head/usr.sbin/ppp
Message-ID:  <201201200137.q0K1bn5p016514@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201200137.q0K1bn5p016514>