X-Git-Url: https://git.openafs.org/?p=openafs.git;a=blobdiff_plain;f=src%2Fvolser%2Fvol-dump.c;h=cc09cb7a5d0db77a4fb46d970a6549cc94af2012;hp=c53ad37c96c8c2054f8bd8316626fcbed2ad90bd;hb=13dba17d5a845475e8c68ae00c4b77fee12d48c6;hpb=8a869e0ef99a10f5f26d4f65a96fba5a6440ce93 diff --git a/src/volser/vol-dump.c b/src/volser/vol-dump.c index c53ad37..cc09cb7 100644 --- a/src/volser/vol-dump.c +++ b/src/volser/vol-dump.c @@ -560,7 +560,9 @@ DumpFile(int dumpfd, int vnode, FdHandle_t * handleP, struct VnodeDiskObject *v int code = 0, failed_seek = 0, failed_write = 0; afs_int32 pad = 0; afs_int32 offset = 0; - afs_sfsize_t n, nbytes, howMany, howBig; + afs_sfsize_t nbytes, howBig; + ssize_t n; + size_t howMany; byte *p; afs_uint32 hi, lo; #ifndef AFS_NT40_ENV @@ -642,7 +644,7 @@ DumpFile(int dumpfd, int vnode, FdHandle_t * handleP, struct VnodeDiskObject *v */ if (n < howMany) { - if (verbose) fprintf(stderr, " read %u instead of %u bytes.\n", n, howMany); + if (verbose) fprintf(stderr, " read %u instead of %u bytes.\n", (unsigned)n, (unsigned)howMany); /* Record the read error */ if (n < 0) {