diff --git a/swad_API.c b/swad_API.c
index 7b819451..aca2bdc8 100644
--- a/swad_API.c
+++ b/swad_API.c
@@ -2849,7 +2849,7 @@ int swad__sendAttendanceUsers (struct soap *soap,
Att.AttCod,SubQueryAllUsrs);
/* Free memory for subquery string */
- free ((void *) SubQueryAllUsrs);
+ free (SubQueryAllUsrs);
/* Clean table att_usr */
Att_RemoveUsrsAbsentWithoutCommentsFromAttEvent (Att.AttCod);
@@ -3089,7 +3089,7 @@ int swad__getNotifications (struct soap *soap,
Length);
/* Free memory used by content string */
- free ((void *) ContentStr);
+ free (ContentStr);
ContentStr = NULL;
}
}
@@ -4751,9 +4751,9 @@ static void API_ListDir (unsigned Level,const char *Path,const char *PathInTree)
}
}
- free ((void *) FileList[NumFile]);
+ free (FileList[NumFile]);
}
- free ((void *) FileList);
+ free (FileList);
}
}
@@ -5082,7 +5082,7 @@ int swad__getMarks (struct soap *soap,
getMarksOut->content = (char *) soap_malloc (Gbl.soap,Length + 1);
Str_Copy (getMarksOut->content,ContentStr,
Length);
- free ((void *) ContentStr);
+ free (ContentStr);
ContentStr = NULL;
}
else
diff --git a/swad_HTML.c b/swad_HTML.c
index 1ade7213..9e096770 100644
--- a/swad_HTML.c
+++ b/swad_HTML.c
@@ -122,7 +122,7 @@ void HTM_TABLE_Begin (const char *fmt,...)
HTM_TABLE_NestingLevel++;
- free ((void *) Class);
+ free (Class);
}
else
HTM_TABLE_BeginWithoutAttr ();
@@ -247,7 +247,7 @@ void HTM_TR_Begin (const char *fmt,...)
/***** Print HTML *****/
fprintf (Gbl.F.Out,"
",Attr);
- free ((void *) Attr);
+ free (Attr);
}
else
HTM_TR_BeginWithoutAttr ();
@@ -347,7 +347,7 @@ static void HTM_TH_BeginAttr (const char *fmt,...)
/***** Print HTML *****/
fprintf (Gbl.F.Out,"",Attr);
- free ((void *) Attr);
+ free (Attr);
}
else
HTM_TH_BeginWithoutAttr ();
@@ -412,7 +412,7 @@ void HTM_TD_Begin (const char *fmt,...)
/***** Print HTML *****/
fprintf (Gbl.F.Out," | ",Attr);
- free ((void *) Attr);
+ free (Attr);
}
else
HTM_TD_BeginWithoutAttr ();
@@ -490,7 +490,7 @@ void HTM_DIV_Begin (const char *fmt,...)
/***** Print HTML *****/
fprintf (Gbl.F.Out,"",Attr);
- free ((void *) Attr);
+ free (Attr);
}
else
HTM_DIV_BeginWithoutAttr ();
@@ -584,7 +584,7 @@ void HTM_UL_Begin (const char *fmt,...)
/***** Print HTML *****/
fprintf (Gbl.F.Out," ",Attr);
- free ((void *) Attr);
+ free (Attr);
}
else
HTM_UL_BeginWithoutAttr ();
@@ -636,7 +636,7 @@ void HTM_LI_Begin (const char *fmt,...)
/***** Print HTML *****/
fprintf (Gbl.F.Out,"- ",Attr);
- free ((void *) Attr);
+ free (Attr);
}
else
HTM_LI_BeginWithoutAttr ();
@@ -688,7 +688,7 @@ void HTM_A_Begin (const char *fmt,...)
/***** Print HTML *****/
fprintf (Gbl.F.Out,"",Attr);
- free ((void *) Attr);
+ free (Attr);
}
else
HTM_A_BeginWithoutAttr ();
@@ -768,7 +768,7 @@ void HTM_LABEL_Begin (const char *fmt,...)
/***** Print HTML *****/
fprintf (Gbl.F.Out,"
|