X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Ffileblocks.c;h=1a44516f3d0fb2a61af0bab5be00f22a6ae378df;hb=2c6d91f6bcfffcaa7320af7ea4e2a9c970c0966e;hp=0c182d8e0223818514acef009b2238c8145ae047;hpb=67f394c1d2be473276ccd5e071f986511a13e212;p=gnulib.git diff --git a/lib/fileblocks.c b/lib/fileblocks.c index 0c182d8e0..1a44516f3 100644 --- a/lib/fileblocks.c +++ b/lib/fileblocks.c @@ -50,8 +50,7 @@ typedef long daddr_t; /* for disk address */ /* Return the number of 512-byte blocks in a file of SIZE bytes. */ off_t -st_blocks (size) - off_t size; +st_blocks (off_t size) { off_t datablks = size / 512 + (size % 512 != 0); off_t indrblks = 0;