diff --git a/bsd_src/function.c b/bsd_src/function.c index 1f2c3f2..054b63c 100644 --- a/bsd_src/function.c +++ b/bsd_src/function.c @@ -374,7 +374,7 @@ static void printlong_ffind (char * name, struct stat * sb) printf("%4ld ", (long)BLK(sb->st_size)); modep = ((S_IFDIR & sb->st_mode)) ? "drwxrwxrwx" : "-rw-rw-rw-" ; - printf("%s %3u %-*s %-*s ", modep, sb->st_nlink, 8, "nobody", 8, "nobody"); + printf("%s %3u %-*s %-*s ", modep, (unsigned int)sb->st_nlink, 8, "nobody", 8, "nobody"); printf("%8ld ", (long)sb->st_size); printtime_ffind(sb->st_mtime); diff --git a/bsd_src/print.c b/bsd_src/print.c index f4059b0..51e8261 100644 --- a/bsd_src/print.c +++ b/bsd_src/print.c @@ -126,7 +126,7 @@ void printlong (LS * stats, int num) if (f_size ) printf("%4lu ", (unsigned long)BLK(stats->lstat.st_size)); modep = ((S_IFDIR & stats->lstat.st_mode)) ? "drwxrwxrwx" : "-rw-rw-rw-" ; - (void)printf("%s %3u %-*s ", modep, stats->lstat.st_nlink, 8, "nobody"); + (void)printf("%s %3u %-*s ", modep, (unsigned int)stats->lstat.st_nlink, 8, "nobody"); if (f_group) printf("%-*s ", 8, "nobody"); else printf("%8lu ", (unsigned long)stats->lstat.st_size); if (f_accesstime) printtime(stats->lstat.st_atime);