Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Aug 2016 13:43:43 +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: r304678 - head/usr.sbin/kldxref
Message-ID:  <201608231343.u7NDhh9t091777@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: araujo
Date: Tue Aug 23 13:43:43 2016
New Revision: 304678
URL: https://svnweb.freebsd.org/changeset/base/304678

Log:
  Use roundup2() from sys/param.h.

Modified:
  head/usr.sbin/kldxref/kldxref.c

Modified: head/usr.sbin/kldxref/kldxref.c
==============================================================================
--- head/usr.sbin/kldxref/kldxref.c	Tue Aug 23 13:35:48 2016	(r304677)
+++ head/usr.sbin/kldxref/kldxref.c	Tue Aug 23 13:43:43 2016	(r304678)
@@ -74,7 +74,7 @@ static int reccnt;	/* total record writt
 static void
 intalign(void)
 {
-	recpos = (recpos + sizeof(int) - 1) & ~(sizeof(int) - 1);
+	recpos = roundup2(recpos, sizeof(int));
 }
 
 static void



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201608231343.u7NDhh9t091777>