Decided to put out uid_t and gid_t as unsigned long

This commit is contained in:
2010-04-12 11:12:43 +00:00
parent 4c91872b2a
commit 9832edf4a1
3 changed files with 9 additions and 9 deletions

View File

@ -126,13 +126,13 @@ int Compare_2_files(char *adr1, char *adr2, char *adrc, int flag)
differs= 1;
}
if(s1.st_uid != s2.st_uid) {
printf("%s : st_uid : %d <> %d\n",
a, (int) s1.st_uid, (int) s2.st_uid);
printf("%s : st_uid : %lu <> %lu\n",
a, (unsigned long) s1.st_uid, (unsigned long) s2.st_uid);
differs= 1;
}
if(s1.st_gid != s2.st_gid) {
printf("%s : st_gid : %d <> %d\n",
a, (int) s1.st_gid, (int) s2.st_gid);
printf("%s : st_gid : %lu <> %lu\n",
a, (unsigned long) s1.st_gid, (unsigned long) s2.st_gid);
differs= 1;
}
if((S_ISCHR(s1.st_mode) && S_ISCHR(s2.st_mode)) ||