diff options
author | Christopher Faylor <me@cgf.cx> | 2005-07-06 20:05:03 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-07-06 20:05:03 +0000 |
commit | 0c55f6ed60a0b1b9c6ac47f8726191e48f90c052 (patch) | |
tree | bddbfd9cddc82d403fbfaa4f619e8f14c47159fe /winsup/cygwin/fhandler_disk_file.cc | |
parent | dee9edd9ed9fbe5f97367ad04d4203729e02ca9a (diff) | |
download | cygnal-0c55f6ed60a0b1b9c6ac47f8726191e48f90c052.tar.gz cygnal-0c55f6ed60a0b1b9c6ac47f8726191e48f90c052.tar.bz2 cygnal-0c55f6ed60a0b1b9c6ac47f8726191e48f90c052.zip |
Eliminate (void) cast on standalone function calls throughout.
Diffstat (limited to 'winsup/cygwin/fhandler_disk_file.cc')
-rw-r--r-- | winsup/cygwin/fhandler_disk_file.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/winsup/cygwin/fhandler_disk_file.cc b/winsup/cygwin/fhandler_disk_file.cc index 491b55916..368df374d 100644 --- a/winsup/cygwin/fhandler_disk_file.cc +++ b/winsup/cygwin/fhandler_disk_file.cc @@ -414,7 +414,7 @@ fhandler_base::fstat_helper (struct __stat64 *buf, pc.set_exec (); buf->st_mode |= STD_XBITS; } - (void) SetFilePointer (get_handle (), cur, NULL, FILE_BEGIN); + SetFilePointer (get_handle (), cur, NULL, FILE_BEGIN); } } } @@ -1334,7 +1334,7 @@ fhandler_disk_file::readdir (DIR *dir) else if (!FindNextFileA (dir->__handle, &buf)) { DWORD lasterr = GetLastError (); - (void) FindClose (dir->__handle); + FindClose (dir->__handle); dir->__handle = INVALID_HANDLE_VALUE; /* POSIX says you shouldn't set errno when readdir can't find any more files; so, if another error we leave it set. */ @@ -1363,7 +1363,7 @@ fhandler_disk_file::readdir (DIR *dir) /* We get here if `buf' contains valid data. */ if (pc.isencoded ()) - (void) fnunmunge (dir->__d_dirent->d_name, buf.cFileName); + fnunmunge (dir->__d_dirent->d_name, buf.cFileName); else strcpy (dir->__d_dirent->d_name, buf.cFileName); @@ -1394,7 +1394,7 @@ fhandler_disk_file::rewinddir (DIR *dir) { if (dir->__handle != INVALID_HANDLE_VALUE) { - (void) FindClose (dir->__handle); + FindClose (dir->__handle); dir->__handle = INVALID_HANDLE_VALUE; } dir->__d_position = 0; |