Date: Wed, 22 Jan 2014 09:23:30 +0000 (UTC) From: Gleb Smirnoff <glebius@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org Subject: svn commit: r261010 - stable/9/sys/netgraph Message-ID: <201401220923.s0M9NUvH059162@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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))
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201401220923.s0M9NUvH059162>