]> git.saurik.com Git - apple/system_cmds.git/blobdiff - vm_stat.tproj/vm_stat.c
system_cmds-431.tar.gz
[apple/system_cmds.git] / vm_stat.tproj / vm_stat.c
index 01d9a6268d6da0f71dfa430f2bf5cbcad2969ae6..ec9680f7bae96b6e7c1c70740d4fbdec83765ee5 100644 (file)
@@ -52,7 +52,7 @@ natural_t percent;
 int    delay;
 char   *pgmname;
 mach_port_t myHost;
-int pageSize = 4096;   /* set to 4k default */
+vm_size_t pageSize = 4096;     /* set to 4k default */
 
 void usage(void);
 void banner(void);
@@ -182,7 +182,7 @@ print_stats(void)
 void
 get_stats(struct vm_statistics *stat)
 {
-       int count = HOST_VM_INFO_COUNT;
+       unsigned int count = HOST_VM_INFO_COUNT;
        if (host_statistics(myHost, HOST_VM_INFO, (host_info_t)stat, &count) != KERN_SUCCESS) {
                fprintf(stderr, "%s: failed to get statistics.\n", pgmname);
                exit(EXIT_FAILURE);