Author: glebius
Date: Wed Jan 22 09:23:30 2014
New Revision: 261010
URL: http://svnweb.freebsd.org/changeset/base/261010

Log:
  Merge 260225:
  
    Fix circular math macro.
  
  PR:   146082

Modified:
  stable/9/sys/netgraph/ng_l2tp.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/netgraph/ng_l2tp.c
==============================================================================
--- stable/9/sys/netgraph/ng_l2tp.c     Wed Jan 22 09:22:39 2014        
(r261009)
+++ stable/9/sys/netgraph/ng_l2tp.c     Wed Jan 22 09:23:30 2014        
(r261010)
@@ -98,7 +98,7 @@ static MALLOC_DEFINE(M_NETGRAPH_L2TP, "n
 #define L2TP_ENABLE_DSEQ       1                       /* enable data seq # */
 
 /* Compare sequence numbers using circular math */
-#define L2TP_SEQ_DIFF(x, y)    ((int)((int16_t)(x) - (int16_t)(y)))
+#define L2TP_SEQ_DIFF(x, y)    ((int16_t)((x) - (y)))
 
 #define SESSHASHSIZE           0x0020
 #define SESSHASH(x)            (((x) ^ ((x) >> 8)) & (SESSHASHSIZE - 1))
_______________________________________________
svn-src-stable-9@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-stable-9
To unsubscribe, send any mail to "svn-src-stable-9-unsubscr...@freebsd.org"

Reply via email to