Date: Fri, 22 Apr 2016 06:23:23 +0000 (UTC) From: Marcelo Araujo <araujo@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r298453 - head/usr.bin/xlint/lint1 Message-ID: <201604220623.u3M6NNVG006711@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: araujo Date: Fri Apr 22 06:23:23 2016 New Revision: 298453 URL: https://svnweb.freebsd.org/changeset/base/298453 Log: Use roundup2() macro from sys/param.h. MFC after: 2 weeks. Modified: head/usr.bin/xlint/lint1/decl.c Modified: head/usr.bin/xlint/lint1/decl.c ============================================================================== --- head/usr.bin/xlint/lint1/decl.c Fri Apr 22 06:01:11 2016 (r298452) +++ head/usr.bin/xlint/lint1/decl.c Fri Apr 22 06:23:23 2016 (r298453) @@ -1105,7 +1105,7 @@ align(int al, int len) if (al > dcs->d_stralign) dcs->d_stralign = al; - no = (dcs->d_offset + (al - 1)) & ~(al - 1); + no = roundup2(dcs->d_offset, al); if (len == 0 || dcs->d_offset + len > no) dcs->d_offset = no; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604220623.u3M6NNVG006711>