Browse Source

#127: dtcm: solaris - use readdir instead of readdir_r

Jon Trulson 1 year ago
parent
commit
e03eabfd59
1 changed files with 0 additions and 10 deletions
  1. 0 10
      cde/programs/dtcm/server/cmsfunc.c

+ 0 - 10
cde/programs/dtcm/server/cmsfunc.c

@@ -1293,17 +1293,7 @@ _ListCalendarNames(uint *num_names, char ***names)
 	if ((dirp = opendir(".")) == NULL)
 		return (CSA_E_FAILURE);
 
-#ifdef SunOS
-	if ((dp = (struct dirent *)malloc(sizeof(struct dirent) + FILENAME_MAX))
-	    == NULL) {
-		closedir(dirp);
-		return (CSA_E_INSUFFICIENT_MEMORY);
-	}
-
-	while (dp = readdir_r(dirp, dp)) {
-#else
 	while (dp = readdir(dirp)) {
-#endif
 		if (strncmp(dp->d_name, "callog.", strlen("callog.")) == 0) {
 			if (count == num) {
 				count += _NAME_INCREMENT;