svn commit: r233588 - stable/9/usr.sbin/ppp

Eitan Adler eadler at FreeBSD.org
Wed Mar 28 02:33:51 UTC 2012


Author: eadler
Date: Wed Mar 28 02:33:50 2012
New Revision: 233588
URL: http://svn.freebsd.org/changeset/base/233588

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

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

Modified: stable/9/usr.sbin/ppp/lqr.c
==============================================================================
--- stable/9/usr.sbin/ppp/lqr.c	Wed Mar 28 01:52:38 2012	(r233587)
+++ stable/9/usr.sbin/ppp/lqr.c	Wed Mar 28 02:33:50 2012	(r233588)
@@ -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++)


More information about the svn-src-stable-9 mailing list