fix a warning

This commit is contained in:
asvitkine 2012-03-01 04:24:45 +00:00
parent 62956816ed
commit bad472294c

View File

@ -800,8 +800,8 @@ loff_t SysGetFileSize(void *arg)
if (fh->is_file)
return fh->file_size;
else {
long blocks;
#if defined(__linux__)
long blocks;
if (ioctl(fh->fd, BLKGETSIZE, &blocks) < 0)
return 0;
D(bug(" BLKGETSIZE returns %d blocks\n", blocks));