mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 09:10:28 +00:00
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
This commit is contained in:
parent
7898f4085c
commit
8e721ea734
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=207964
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue