[libgsf] gsf-output-stdio: fix warning on win32



commit 9e5266c1dbec430d0f441249b1765442ab3b0a65
Author: Marc-André Lureau <marcandre lureau redhat com>
Date:   Fri Jan 31 15:07:07 2020 +0100

    gsf-output-stdio: fix warning on win32
    
    /usr/x86_64-w64-mingw32/sys-root/mingw/include/glib-2.0/glib/gstdio.h:137:31: note: expected 'GStatBuf *' 
{aka 'struct _stat64 *'} but argument is of type 'struct stat *'
    
    Signed-off-by: Marc-André Lureau <marcandre lureau redhat com>

 gsf/gsf-output-stdio.c | 4 ++--
 tools/gsf.c            | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gsf/gsf-output-stdio.c b/gsf/gsf-output-stdio.c
index 8e21733..644c990 100644
--- a/gsf/gsf-output-stdio.c
+++ b/gsf/gsf-output-stdio.c
@@ -66,7 +66,7 @@ struct _GsfOutputStdio {
        FILE     *file;
        char     *real_filename, *temp_filename;
        gboolean  create_backup_copy, keep_open;
-       struct stat st;
+       GStatBuf  st;
 };
 
 typedef struct {
@@ -436,7 +436,7 @@ gsf_output_stdio_new_valist (char const *filename, GError **err,
        char *real_filename = follow_symlinks (filename, err);
        int fd;
        mode_t saved_umask;
-       struct stat st;
+       GStatBuf st;
        gboolean fixup_mode = FALSE;
 
        if (real_filename == NULL)
diff --git a/tools/gsf.c b/tools/gsf.c
index ba148cc..0f45c0d 100644
--- a/tools/gsf.c
+++ b/tools/gsf.c
@@ -384,7 +384,7 @@ static void
 load_recursively (GsfOutfile *outfile, char const *path)
 {
        GError *error = NULL;
-       struct stat statbuf;
+       GStatBuf statbuf;
 
        if (g_stat (path, &statbuf) == -1) {
                g_printerr ("Failed to stat %s: %s\n",


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