diff options
author | raveit65 <[email protected]> | 2024-01-31 11:47:29 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2024-01-31 12:23:48 +0100 |
commit | 479e927d957f7b66fbfe12ad2324f927be15182a (patch) | |
tree | 232835c1b9cb8315926a646cd053aeea372cc0ad | |
parent | d901a9df71935fc98c0ec59bd27658670f3740ee (diff) | |
download | atril-1.26.tar.bz2 atril-1.26.tar.xz |
fix a incompatible pointer type warning for gcc141.26
* fix a incompatible pointer type warning for gcc14
Co-authored-by: Colomban Wendling <[email protected]>
-rw-r--r-- | backend/epub/epub-document.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/epub/epub-document.c b/backend/epub/epub-document.c index 1ac13e60..471d9803 100644 --- a/backend/epub/epub-document.c +++ b/backend/epub/epub-document.c @@ -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; } @@ -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_N_ELEMENTS (mimetypes); i++) { if (g_strcmp0(mimeFromFile, mimetypes[i]) == 0) return TRUE; } |