Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Jan 2012 01:37:39 +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: r230348 - head/usr.sbin/ppp
Message-ID:  <201201200137.q0K1bdSN016473@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: eadler
Date: Fri Jan 20 01:37:39 2012
New Revision: 230348
URL: http://svn.freebsd.org/changeset/base/230348

Log:
  Fix warning when compiling with gcc46:
  	error: variable 'extra_async_bytes' 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/lqr.c

Modified: head/usr.sbin/ppp/lqr.c
==============================================================================
--- head/usr.sbin/ppp/lqr.c	Fri Jan 20 01:37:31 2012	(r230347)
+++ head/usr.sbin/ppp/lqr.c	Fri Jan 20 01:37:39 2012	(r230348)
@@ -417,7 +417,7 @@ lqr_LayerPush(struct bundle *b __unused,
               int pri __unused, u_short *proto)
 {
   struct physical *p = link2physical(l);
-  int len, layer, extra_async_bytes;
+  int len, layer;
 
   if (!p) {
     /* Oops - can't happen :-] */
@@ -445,7 +445,6 @@ lqr_LayerPush(struct bundle *b __unused,
    * acf layers (to avoid alignment issues), so deal with this too.
    */
 
-  extra_async_bytes = 0;
   p->hdlc.lqm.ifOutUniPackets++;
   p->hdlc.lqm.ifOutOctets += len + 1;		/* plus 1 flag octet! */
   for (layer = 0; layer < l->nlayers; layer++)



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