summaryrefslogtreecommitdiffstats
path: root/sbin/kldstat
diff options
context:
space:
mode:
authorbrueffer <brueffer@FreeBSD.org>2010-05-12 15:47:43 +0000
committerbrueffer <brueffer@FreeBSD.org>2010-05-12 15:47:43 +0000
commitaab3fb8917a2b130908440411a8d8ce31495eb38 (patch)
tree0523b5301db35f3d49cbbfccf838b83537cc1fbb /sbin/kldstat
parent078a73da4612d564f4479fae47df46408e712db7 (diff)
downloadFreeBSD-src-aab3fb8917a2b130908440411a8d8ce31495eb38.zip
FreeBSD-src-aab3fb8917a2b130908440411a8d8ce31495eb38.tar.gz
Casting size_t to uintmax_t is not necessary anymore. This also
removes the need for stdint.h inclusion. PR: 146046 Submitted by: Alexander Best <alexbestms@wwu.de> Reviewed by: kan MFC after: 1 week
Diffstat (limited to 'sbin/kldstat')
-rw-r--r--sbin/kldstat/kldstat.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sbin/kldstat/kldstat.c b/sbin/kldstat/kldstat.c
index ec243b8..78182b9 100644
--- a/sbin/kldstat/kldstat.c
+++ b/sbin/kldstat/kldstat.c
@@ -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 verbose)
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) {
OpenPOWER on IntegriCloud