Author: petdance
Date: Fri Jul 6 12:49:36 2007
New Revision: 19649
Modified:
trunk/src/io/io_mmap.c
Log:
XXX We are ignoring the return value from fstat
Modified: trunk/src/io/io_mmap.c
==============================================================================
--- trunk/src/io/io_mmap.c (original)
+++ trunk/src/io/io_mmap.c Fri Jul 6 12:49:36 2007
@@ -128,7 +128,7 @@
int status;
PIOOFF_T file_size;
- status = fstat(io->fd, &statbuf);
+ status = fstat(io->fd, &statbuf); /* XXX We're ignoring this return
value. */
file_size = statbuf.st_size;
/* TODO verify flags */
io->b.startb = (unsigned char *)mmap(0, file_size, PROT_READ,
MAP_SHARED, io->fd, 0);