From 0c55f6ed60a0b1b9c6ac47f8726191e48f90c052 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Wed, 6 Jul 2005 20:05:03 +0000 Subject: Eliminate (void) cast on standalone function calls throughout. --- winsup/cygwin/fhandler_disk_file.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'winsup/cygwin/fhandler_disk_file.cc') 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; -- cgit v1.2.3