svn commit: r304678 - head/usr.sbin/kldxref
Marcelo Araujo
araujo at FreeBSD.org
Tue Aug 23 13:43:44 UTC 2016
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
More information about the svn-src-head
mailing list