svn commit: r209660 - stable/8/sbin/kldstat
Christian Brueffer
brueffer at FreeBSD.org
Sat Jul 3 12:09:45 UTC 2010
Author: brueffer
Date: Sat Jul 3 12:09:45 2010
New Revision: 209660
URL: http://svn.freebsd.org/changeset/base/209660
Log:
MFC: r207964
Casting size_t to uintmax_t is not necessary anymore. This also
removes the need for stdint.h inclusion.
Modified:
stable/8/sbin/kldstat/kldstat.c
Directory Properties:
stable/8/sbin/kldstat/ (props changed)
Modified: stable/8/sbin/kldstat/kldstat.c
==============================================================================
--- stable/8/sbin/kldstat/kldstat.c Sat Jul 3 09:54:14 2010 (r209659)
+++ stable/8/sbin/kldstat/kldstat.c Sat Jul 3 12:09:45 2010 (r209660)
@@ -28,7 +28,6 @@
__FBSDID("$FreeBSD$");
#include <err.h>
-#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
@@ -60,8 +59,8 @@ static void printfile(int fileid, int ve
if (kldstat(fileid, &stat) < 0)
warn("can't stat file id %d", fileid);
else
- printf("%2d %4d %p %-8jx %s",
- stat.id, stat.refs, stat.address, (uintmax_t)stat.size,
+ printf("%2d %4d %p %-8zx %s",
+ stat.id, stat.refs, stat.address, stat.size,
stat.name);
if (verbose) {
More information about the svn-src-stable-8
mailing list