rid -Wall statvfs warning on solaris 8

This commit is contained in:
Doug MacEachern committed 2009-05-23 07:36:33 -07:00
1 parent cb7b440c0c
commit a76768c30f
1 file changed
+8 -1
+8 -1
View File
@@ -75,8 +75,15 @@ int sigar_statvfs(sigar_t *sigar,
{
struct statvfs buf;
sigar_uint64_t val, bsize;
int status =
#if defined(__sun) && !defined(_LP64)
/* http://bugs.opensolaris.org/view_bug.do?bug_id=4462986 */
statvfs(dirname, (void *)&buf);
#else
statvfs(dirname, &buf);
#endif
if (statvfs(dirname, &buf) != 0) {
if (status != 0) {
return errno;
}