imadev:~$ enable -f /var/tmp/bash-4.0/examples/loadables/finfo finfo
imadev:~$ ls -l .bashrc
-rw-r--r-- 1 wooledg pgmr 331 Sep 16 14:30 .bashrc
imadev:~$ finfo -s .bashrc
316732948
imadev:~$ finfo -s .bashrc
317115222
--- finfo.c.orig Wed Feb 25 10:07:12 2009
+++ finfo.c Wed Feb 25 10:04:45 2009
@@ -357,7 +357,7 @@
else
printf("%d\n", st->st_gid);
} else if (flags & OPT_SIZE)
- printf("%ld\n", st->st_size);
+ printf("%ld\n", (long) st->st_size);
return (0);
}
The other use of st->st_size (in printst() line 276) is already cast.