]> git.sur5r.net Git - openldap/commitdiff
closedir() replacement function should return a result
authorKurt Zeilenga <kurt@OpenLDAP.org>
Fri, 10 Oct 2014 19:15:48 +0000 (12:15 -0700)
committerKurt Zeilenga <kurt.zeilenga@isode.com>
Fri, 10 Oct 2014 19:15:48 +0000 (12:15 -0700)
return success, ignoring result of FindClose

libraries/liblutil/utils.c

index 66e4e9a05cc76904924f5d61ea1aa1390bbdddfd..310380b623dfcc65467fa01fccc8f59878d6c8bd 100644 (file)
@@ -437,8 +437,9 @@ struct dirent *readdir(DIR *dir)
 }
 int closedir(DIR *dir)
 {
-       FindClose(dir->dir);
+       (void) FindClose(dir->dir);
        ber_memfree(dir);
+       return 0;
 }
 #endif