* mmap.cc (mmap64): Avoid compiler warning.

* ntea.cc (NTReadEA): Ditto.
	* hires.h (hires_base): Remove useless usecs function.
This commit is contained in:
Corinna Vinschen 2005-05-18 17:23:17 +00:00
parent d621341de7
commit 692fccabfb
4 changed files with 8 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2005-05-18 Corinna Vinschen <corinna@vinschen.de>
* mmap.cc (mmap64): Avoid compiler warning.
* ntea.cc (NTReadEA): Ditto.
* hires.h (hires_base): Remove useless usecs function.
2005-05-18 Corinna Vinschen <corinna@vinschen.de>
* fhandler_netdrive.cc (fhandler_netdrive::telldir): Remove since it's

View File

@ -25,8 +25,6 @@ class hires_base
{
protected:
int inited;
public:
virtual LONGLONG usecs (bool justdelta) {return 0LL;}
};
class hires_us : hires_base

View File

@ -538,7 +538,7 @@ mmap64 (void *addr, size_t len, int prot, int flags, int fd, _off64_t off)
if (flags & MAP_ANONYMOUS)
fd = -1;
fhandler_base *fh;
fhandler_base *fh = NULL;
/* Get fhandler and convert /dev/zero mapping to MAP_ANONYMOUS mapping. */
if (fd != -1)

View File

@ -88,7 +88,7 @@ NTReadEA (const char *file, const char *attrname, char *attrbuf, int len)
HANDLE hFileSource;
int eafound = 0;
PFILE_FULL_EA_INFORMATION ea, sea;
int easize;
int easize = 0;
hFileSource = CreateFile (file, FILE_READ_EA,
FILE_SHARE_READ | FILE_SHARE_WRITE,