Author: brueffer
Date: Wed May 12 15:47:43 2010
New Revision: 207964
URL: http://svn.freebsd.org/changeset/base/207964

Log:
  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 <alexbes...@wwu.de>
  Reviewed by:  kan
  MFC after:    1 week

Modified:
  head/sbin/kldstat/kldstat.c

Modified: head/sbin/kldstat/kldstat.c
==============================================================================
--- head/sbin/kldstat/kldstat.c Wed May 12 13:45:46 2010        (r207963)
+++ head/sbin/kldstat/kldstat.c Wed May 12 15:47:43 2010        (r207964)
@@ -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) {
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to