[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
examples/loadable/finfo.c missing cast
From: |
Greg Wooledge |
Subject: |
examples/loadable/finfo.c missing cast |
Date: |
Wed, 25 Feb 2009 10:10:13 -0500 |
User-agent: |
Mutt/1.4.2.2i |
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.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- examples/loadable/finfo.c missing cast,
Greg Wooledge <=