Skip to content

Commit

Permalink
fix a incompatible pointer type warning for gcc14
Browse files Browse the repository at this point in the history
* fix a incompatible pointer type warning for gcc14

Co-authored-by: Colomban Wendling <[email protected]>
  • Loading branch information
raveit65 and cwendling authored Jan 31, 2024
1 parent e254cd9 commit 095b361
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/epub/epub-document.c
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ check_mime_type(const gchar* uri,GError** error)
const gchar* mimetypes[] = {"application/epub+zip", "application/x-booki+zip", NULL};
guint i;

for (i = 0; i < g_strv_length (mimetypes); i++) {
for (i = 0; mimetypes[i]; i++) {
if (strcmp(mimeFromFile, mimetypes[i]) == 0)
return TRUE;
}
Expand All @@ -643,7 +643,7 @@ check_mime_type(const gchar* uri,GError** error)
mimeFromFile = ev_file_get_mime_type (uri, TRUE, &err);
if (mimeFromFile)
{
for (i = 0; i < g_strv_length (mimetypes); i++) {
for (i = 0; i < g_strv_length ((gchar**) mimetypes); i++) {
if (g_strcmp0(mimeFromFile, mimetypes[i]) == 0)
return TRUE;
}
Expand Down

0 comments on commit 095b361

Please sign in to comment.