---
 mingw-w64-crt/misc/dirent.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/mingw-w64-crt/misc/dirent.c b/mingw-w64-crt/misc/dirent.c
index a5d594cc3..215b0b0b6 100644
--- a/mingw-w64-crt/misc/dirent.c
+++ b/mingw-w64-crt/misc/dirent.c
@@ -50,13 +50,13 @@ _topendir (const _TCHAR *szPath)
   if (!szPath)
     {
       errno = EFAULT;
-      return (_TDIR *) 0;
+      return NULL;
     }
 
   if (szPath[0] == _T('\0'))
     {
       errno = ENOTDIR;
-      return (_TDIR *) 0;
+      return NULL;
     }
 
   /* Attempt to determine if the given path really is a directory. */
@@ -65,13 +65,13 @@ _topendir (const _TCHAR *szPath)
     {
       /* call GetLastError for more error info */
       errno = ENOENT;
-      return (_TDIR *) 0;
+      return NULL;
     }
   if (!(rc & FILE_ATTRIBUTE_DIRECTORY))
     {
       /* Error, entry exists but not a directory. */
       errno = ENOTDIR;
-      return (_TDIR *) 0;
+      return NULL;
     }
 
   /* Make an absolute pathname.  */
@@ -88,7 +88,7 @@ _topendir (const _TCHAR *szPath)
     {
       /* Error, out of memory. */
       errno = ENOMEM;
-      return (_TDIR *) 0;
+      return NULL;
     }
 
   /* Create the search expression. */
@@ -139,14 +139,14 @@ _treaddir (_TDIR * dirp)
   if (!dirp)
     {
       errno = EFAULT;
-      return (struct _tdirent *) 0;
+      return NULL;
     }
 
   if (dirp->dd_stat < 0)
     {
       /* We have already returned all files in the directory
        * (or the structure has an invalid dd_stat). */
-      return (struct _tdirent *) 0;
+      return NULL;
     }
   else if (dirp->dd_stat == 0)
     {
@@ -198,7 +198,7 @@ _treaddir (_TDIR * dirp)
       return &dirp->dd_dir;
     }
 
-  return (struct _tdirent *) 0;
+  return NULL;
 }
 
 
-- 
2.47.1



_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to