diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2019-06-29 15:37:10 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gmail.com> | 2019-06-29 14:54:56 +0000 |
commit | c2c87dbc3b7854fba6b858c5682e91f2e053908a (patch) | |
tree | 8ec584c0e4e7095458e72ed428bb762469f73118 /gdk-pixbuf | |
parent | 638369cde8b12f54422a3b48260250d202a4a882 (diff) | |
download | gdk-pixbuf-c2c87dbc3b7854fba6b858c5682e91f2e053908a.tar.gz |
Remove uses of g_memmove()
There's no reason to use g_memmove() instead of memmove().
The `g_memmove()` wrapper was a symbol internal to GLib between 2004 and
2013, when it was exposed as a plain C pre-processor symbol around C90's
memmove(). Starting from GLib 2.61, using g_memmove() is going to raise
a deprecation warning from the compiler.
Diffstat (limited to 'gdk-pixbuf')
-rw-r--r-- | gdk-pixbuf/io-tga.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdk-pixbuf/io-tga.c b/gdk-pixbuf/io-tga.c index c007ce583..2f752f602 100644 --- a/gdk-pixbuf/io-tga.c +++ b/gdk-pixbuf/io-tga.c @@ -581,7 +581,7 @@ tga_load_header (TGAContext *ctx, _("Cannot allocate TGA header memory")); return FALSE; } - g_memmove(ctx->hdr, g_bytes_get_data (bytes, NULL), sizeof(TGAHeader)); + memmove(ctx->hdr, g_bytes_get_data (bytes, NULL), sizeof(TGAHeader)); g_bytes_unref (bytes); #ifdef DEBUG_TGA g_print ("infolen %d " |