From d078f4907d842c9d9886bb5ea4f9b9f832659c2d Mon Sep 17 00:00:00 2001 From: Satish Kumar Date: Thu, 14 Nov 2002 21:37:26 +0000 Subject: [PATCH] Change some ints to unsigned for correct quota calculation. From Gregory via Satish Kumar. (cherry picked from commit ec5df8df8cfc0e69856031ffcb07ae6d58d4a203) --- src/viced/afsfileprocs.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/viced/afsfileprocs.c b/src/viced/afsfileprocs.c index df4d7faf5..e35f22a2d 100644 --- a/src/viced/afsfileprocs.c +++ b/src/viced/afsfileprocs.c @@ -5014,7 +5014,7 @@ afs_int32 *a_bytesFetchedP; struct iovec tiov[RX_MAXIOVECS]; int tnio; #endif /* AFS_NT40_ENV */ - int tlen; + afs_int32 tlen; afs_int32 optSize; struct stat tstat; #ifdef AFS_AIX_ENV @@ -5212,12 +5212,12 @@ StoreData_RXStyle(volptr, targetptr, Fid, client, Call, Pos, Length, afs_int32 optSize; /* optimal transfer size */ int DataLength; /* size of inode */ afs_int32 TruncatedLength; /* size after ftruncate */ - afs_int32 NewLength; /* size after this store completes */ - afs_int32 adjustSize; /* bytes to call VAdjust... with */ + afs_uint32 NewLength; /* size after this store completes */ + afs_int32 adjustSize; /* bytes to call VAdjust... with */ int linkCount; /* link count on inode */ int code; FdHandle_t *fdP; - struct in_addr logHostAddr; /* host ip holder for inet_ntoa */ + struct in_addr logHostAddr; /* host ip holder for inet_ntoa */ #if FS_STATS_DETAILED /* @@ -5259,7 +5259,7 @@ StoreData_RXStyle(volptr, targetptr, Fid, client, Call, Pos, Length, } if (linkCount != 1) { - int size; + afs_uint32 size; ViceLog(25, ("StoreData_RXStyle : inode %s has more than onelink\n", PrintInode(NULL, VN_GET_INO(targetptr)))); /* other volumes share this data, better copy it first */ @@ -5843,7 +5843,7 @@ Update_ParentVnodeStatus(parentptr, volptr, dir, author, linkcount) #endif /* FS_STATS_DETAILED */ { - int newlength; /* Holds new directory length */ + afs_uint32 newlength; /* Holds new directory length */ int errorCode; #if FS_STATS_DETAILED Date currDate; /*Current date*/ -- 2.39.5