trying to port statvfs call to BSD
authorChristian Grothoff <christian@grothoff.org>
Fri, 2 Jul 2010 08:32:49 +0000 (08:32 +0000)
committerChristian Grothoff <christian@grothoff.org>
Fri, 2 Jul 2010 08:32:49 +0000 (08:32 +0000)
src/util/disk.c

index ef4e33cd29997141aca2aa097d90581b98c66ac8..ef1f9ad4bb29beadb2a44ae6577e2ada82e61256 100644 (file)
@@ -267,7 +267,7 @@ GNUNET_DISK_file_get_identifiers (const char *filename,
   if ( (0 == stat (filename, &sbuf)) &&
        (0 == statfs (filename, &fbuf) ) )
     {
-      *dev = ((uint64_t) fbuf.f_fsid[0]) << 32 || ((uint64_t) fbuf.f_fsid[1]);
+      *dev = (uint64_t) fbuf.f_fsid;
       *ino = (uint64_t) sbuf.st_ino;
       return GNUNET_OK;
     }