From 2dd2ba1bfbe159e3935e42db4606cd44238f99f9 Mon Sep 17 00:00:00 2001 From: lillolollo <4179-lillolollo@users.noreply.gitlab.gnome.org> Date: Sat, 11 Apr 2020 00:59:06 +0000 Subject: [PATCH] plug-ins: file-psp.c fix incompatible pointer type --- plug-ins/common/file-psp.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/plug-ins/common/file-psp.c b/plug-ins/common/file-psp.c index 33c6a2b607..be7f962259 100644 --- a/plug-ins/common/file-psp.c +++ b/plug-ins/common/file-psp.c @@ -1751,16 +1751,15 @@ static gint32 load_image (const gchar *filename, GError **error) { - FILE *f; - struct stat st; - char buf[32]; - PSPimage ia; - guint32 block_init_len, block_total_len; - long block_start; + FILE *f; + GStatBuf st; + char buf[32]; + PSPimage ia; + guint32 block_init_len, block_total_len; + long block_start; PSPBlockID id = -1; - gint block_number; - - gint32 image_ID = -1; + gint block_number; + gint32 image_ID = -1; if (g_stat (filename, &st) == -1) return -1;