X-Git-Url: https://git.saurik.com/apple/system_cmds.git/blobdiff_plain/709a58224ea43109dc10bfd6a67de1e432174197..34d340d711a2b033f5da480ed7b5eb147679a588:/zprint.tproj/zprint.c?ds=sidebyside diff --git a/zprint.tproj/zprint.c b/zprint.tproj/zprint.c index 1d030ae..8187b1b 100644 --- a/zprint.tproj/zprint.c +++ b/zprint.tproj/zprint.c @@ -39,6 +39,7 @@ */ #include +#include #include #include #include @@ -71,6 +72,7 @@ usage() exit(1); } +int main(argc, argv) int argc; char *argv[]; @@ -83,7 +85,7 @@ main(argc, argv) unsigned int infoCnt = sizeof info_buf/sizeof info_buf[0]; char *zname = NULL; - int znamelen; + int znamelen = 0; kern_return_t kr; int i, j; @@ -249,7 +251,7 @@ printzone(name, info) { unsigned int used, size; - printf("%.*s zone:\n", sizeof name->zn_name, name->zn_name); + printf("%.*s zone:\n", (int)sizeof name->zn_name, name->zn_name); printf("\tcur_size: %dK bytes (%d elements)\n", info->zi_cur_size/1024, info->zi_cur_size/info->zi_elem_size); @@ -290,7 +292,7 @@ colprintzone(zone_name, info) zone_info_t *info; { char *name = zone_name->zn_name; - int j, namewidth, retval; + int j, namewidth; unsigned int used, size; namewidth = 25;