[gimp] fix ``` ../../gimp/plug-ins/common/file-psp.c: In function 'load_image': ../../gimp/plug-ins/common/



commit b9426822800b7bacfd4b239732c33c17f37a3fce
Author: lillolollo <4179-lillolollo users noreply gitlab gnome org>
Date:   Sat Sep 14 16:20:12 2019 +0000

    fix
    ```
    ../../gimp/plug-ins/common/file-psp.c: In function 'load_image':
    ../../gimp/plug-ins/common/file-psp.c:1930:25: warning: passing argument 2 of 'g_stat' from incompatible 
pointer type [-Wincompatible-pointer-types]
     1930 |   if (g_stat (filename, &st) == -1)
          |                         ^~~
          |                         |
          |                         struct stat *
    In file included from ../../gimp/plug-ins/common/file-psp.c:44:
    C:/msys64/mingw64/include/glib-2.0/glib/gstdio.h:134:31: note: expected 'GStatBuf *' {aka 'struct _stat64 
*'} but argument is of type 'struct stat *'
      134 |                  GStatBuf    *buf);
          |                  ~~~~~~~~~~~~~^~~
    
    ```

 plug-ins/common/file-psp.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/plug-ins/common/file-psp.c b/plug-ins/common/file-psp.c
index cec7624321..7704bd9078 100644
--- a/plug-ins/common/file-psp.c
+++ b/plug-ins/common/file-psp.c
@@ -1913,15 +1913,15 @@ static GimpImage *
 load_image (GFile   *file,
             GError **error)
 {
-  gchar  *filename;
-  FILE   *f;
-  struct stat st;
-  char buf[32];
-  PSPimage ia;
-  guint32 block_init_len, block_total_len;
-  long block_start;
+  gchar     *filename;
+  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;
+  gint       block_number;
 
   GimpImage *image = NULL;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]