From 4731e69f3f9ab358a2e9d45ad01a469afd813707 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ca=C3=B1as=20Vargas?= Date: Wed, 6 Nov 2019 19:45:20 +0100 Subject: [PATCH] Version19.54.6 --- swad_API.c | 10 +++---- swad_HTML.c | 42 +++++++++++++------------- swad_HTML.h | 2 +- swad_ID.c | 4 +-- swad_MFU.c | 2 +- swad_QR.c | 6 ++-- swad_agenda.c | 6 ++-- swad_alert.c | 10 +++---- swad_assignment.c | 4 +-- swad_attendance.c | 22 +++++++------- swad_banner.c | 4 +-- swad_centre.c | 32 ++++++++++---------- swad_changelog.h | 3 +- swad_classroom.c | 4 +-- swad_config.c | 2 +- swad_country.c | 16 +++++----- swad_course.c | 30 +++++++++---------- swad_database.c | 14 ++++----- swad_date.c | 70 +++++++++++++++++++------------------------ swad_degree.c | 59 ++++++++++++++++-------------------- swad_degree_type.c | 23 +++++--------- swad_department.c | 56 ++++++++++++---------------------- swad_enrolment.c | 9 ++---- swad_exam.c | 16 +++++----- swad_figure.c | 45 +++++++++++++--------------- swad_file.c | 16 +++++----- swad_file_browser.c | 38 +++++++++++------------ swad_form.c | 2 +- swad_forum.c | 2 +- swad_game.c | 8 ++--- swad_group.c | 22 +++++++------- swad_holiday.c | 4 +-- swad_info.c | 4 +-- swad_institution.c | 4 +-- swad_language.c | 2 +- swad_link.c | 4 +-- swad_logo.c | 4 +-- swad_mail.c | 4 +-- swad_match.c | 8 ++--- swad_match_result.c | 4 +-- swad_media.c | 14 ++++----- swad_message.c | 8 ++--- swad_notice.c | 2 +- swad_notification.c | 2 +- swad_parameter.c | 8 ++--- swad_password.c | 2 +- swad_photo.c | 4 +-- swad_place.c | 4 +-- swad_plugin.c | 8 ++--- swad_project.c | 30 +++++++++---------- swad_record.c | 44 +++++++++++++-------------- swad_role.c | 2 +- swad_scope.c | 12 ++++---- swad_search.c | 2 +- swad_statistic.c | 6 ++-- swad_string.c | 8 ++--- swad_survey.c | 12 ++++---- swad_syllabus.c | 4 +-- swad_test.c | 20 ++++++------- swad_test_import.c | 6 ++-- swad_timeline.c | 2 +- swad_timetable.c | 73 +++++++++++++++++++++------------------------ swad_user.c | 18 +++++------ swad_xml.c | 10 +++---- 64 files changed, 434 insertions(+), 484 deletions(-) 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,"