Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Mar 2012 02:35:28 +0000 (UTC)
From:      Eitan Adler <eadler@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-7@freebsd.org
Subject:   svn commit: r233590 - stable/7/usr.sbin/ppp
Message-ID:  <201203280235.q2S2ZSkM014370@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: eadler
Date: Wed Mar 28 02:35:28 2012
New Revision: 233590
URL: http://svn.freebsd.org/changeset/base/233590

Log:
  MFC r230348:
  	 - Fix warning when compiling with gcc46:
  	        error: variable 'extra_async_bytes' set but not used
  
  Approved by:	cperciva (implicit)

Modified:
  stable/7/usr.sbin/ppp/lqr.c
Directory Properties:
  stable/7/usr.sbin/ppp/   (props changed)

Modified: stable/7/usr.sbin/ppp/lqr.c
==============================================================================
--- stable/7/usr.sbin/ppp/lqr.c	Wed Mar 28 02:34:28 2012	(r233589)
+++ stable/7/usr.sbin/ppp/lqr.c	Wed Mar 28 02:35:28 2012	(r233590)
@@ -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?201203280235.q2S2ZSkM014370>