]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Change some ints to unsigned for correct quota calculation.
authorSatish Kumar <ksatish@in.ibm.com>
Thu, 14 Nov 2002 21:37:26 +0000 (21:37 +0000)
committerGarry Zacheiss <zacheiss@mit.edu>
Thu, 14 Nov 2002 21:37:26 +0000 (21:37 +0000)
From Gregory via Satish Kumar.

(cherry picked from commit ec5df8df8cfc0e69856031ffcb07ae6d58d4a203)

src/viced/afsfileprocs.c

index df4d7faf508b6108d297edfda68da9ac1bfd5479..e35f22a2d4233a4c05f678d7155768a5864535c1 100644 (file)
@@ -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*/