From 55ca096adbaf0256c2a21d28060cbc667cf6b69e Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Thu, 20 Jan 2011 02:03:56 -0500 Subject: [PATCH] vol: remove potential data loss warnings in vol-salvage.c afs_sfsize_t is not always the same size as 'int'. Avoid warnings by using afs_sfsize_t in the appropriate locations. Change-Id: I88f7458421c3a9c2081597e5481d352bd5a2927a Reviewed-on: http://gerrit.openafs.org/3706 Reviewed-by: Derrick Brashear Tested-by: BuildBot Reviewed-by: Rod Widdowson --- src/vol/vol-salvage.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vol/vol-salvage.c b/src/vol/vol-salvage.c index c694db2eb0..1884ebe2c3 100644 --- a/src/vol/vol-salvage.c +++ b/src/vol/vol-salvage.c @@ -3092,7 +3092,7 @@ JudgeEntry(void *arock, char *name, afs_int32 vnodeNumber, Log("FOUND suid/sgid file: %s" OS_DIRSEP "%s (%u.%u %05o) author %u (vnode %u dir %u)\n", dir->name ? dir->name : "??", name, vnodeEssence->owner, vnodeEssence->group, vnodeEssence->modeBits, vnodeEssence->author, vnodeNumber, dir->vnodeNumber); if (/* ShowMounts && */ (vnodeEssence->type == vSymlink) && !(vnodeEssence->modeBits & 0111)) { - ssize_t nBytes; + afs_sfsize_t nBytes; afs_sfsize_t size; char buf[1025]; IHandle_t *ihP; @@ -3980,7 +3980,7 @@ SalvageVolume(struct SalvInfo *salvinfo, struct InodeSummary *rwIsp, IHandle_t * * will get removed here also (if requested). */ for (class = 0; class < nVNODECLASSES; class++) { - int nVnodes = salvinfo->vnodeInfo[class].nVnodes; + afs_sfsize_t nVnodes = salvinfo->vnodeInfo[class].nVnodes; struct VnodeClassInfo *vcp = &VnodeClassInfo[class]; struct VnodeEssence *vnodes = salvinfo->vnodeInfo[class].vnodes; FilesInVolume += salvinfo->vnodeInfo[class].nAllocatedVnodes;