Browse code

fix compile warnings (bb#3882)

Tomasz Kojm authored on 2011/11/23 03:27:21
Showing 3 changed files
... ...
@@ -105,7 +105,7 @@ static void
105 105
 dir(const char *dirname)
106 106
 {
107 107
 	int i, nmachines;
108
-	const struct dirent *dirent;
108
+	struct dirent *dirent;
109 109
 	struct machine *m;
110 110
 	DIR *d = opendir(dirname);
111 111
 	char **results;
... ...
@@ -2897,7 +2897,7 @@ rfc1341(message *m, const char *dir)
2897 2897
 			time(&now);
2898 2898
 			for(n = 1; n <= t; n++) {
2899 2899
 				char filename[NAME_MAX + 1];
2900
-				const struct dirent *dent;
2900
+				struct dirent *dent;
2901 2901
 #if defined(HAVE_READDIR_R_3) || defined(HAVE_READDIR_R_2)
2902 2902
 				union {
2903 2903
 					struct dirent d;
... ...
@@ -2698,7 +2698,7 @@ const char *cl_retdbdir(void)
2698 2698
 int cl_statinidir(const char *dirname, struct cl_stat *dbstat)
2699 2699
 {
2700 2700
 	DIR *dd;
2701
-	const struct dirent *dent;
2701
+	struct dirent *dent;
2702 2702
 #if defined(HAVE_READDIR_R_3) || defined(HAVE_READDIR_R_2)
2703 2703
 	union {
2704 2704
 	    struct dirent d;