[perl-glib-object-introspection] Hush deprecation warnings by using memmove instead of g_memmove



commit c8e718dc440357ee41956b8a0e7a73a48edfc91f
Author: Torsten Schönfeld <kaffeetisch gmx de>
Date:   Sun Dec 8 16:59:03 2019 +0100

    Hush deprecation warnings by using memmove instead of g_memmove

 gperl-i11n-field.c             | 2 +-
 gperl-i11n-marshal-interface.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gperl-i11n-field.c b/gperl-i11n-field.c
index 372f8ef..25ced61 100644
--- a/gperl-i11n-field.c
+++ b/gperl-i11n-field.c
@@ -148,7 +148,7 @@ set_field (GIFieldInfo *field_info, gpointer mem, GITransfer transfer, SV *sv)
                                                      interface_type,
                                                      sv);
                        size = g_struct_info_get_size (interface_info);
-                       g_memmove (G_STRUCT_MEMBER_P (mem, offset), arg.v_pointer, size);
+                       memmove (G_STRUCT_MEMBER_P (mem, offset), arg.v_pointer, size);
                } else {                                        /* Pointer */
                        GType gtype = get_gtype (interface_info);
                        if (g_type_is_a (gtype, G_TYPE_BOXED)) {
diff --git a/gperl-i11n-marshal-interface.c b/gperl-i11n-marshal-interface.c
index 7e0b4fc..2bef8eb 100644
--- a/gperl-i11n-marshal-interface.c
+++ b/gperl-i11n-marshal-interface.c
@@ -242,7 +242,7 @@ sv_to_interface (GIArgInfo * arg_info,
                                } else {
                                        gsize n_bytes = g_struct_info_get_size (interface);
                                        gpointer mem = gperl_get_boxed_check (sv, type);
-                                       g_memmove (arg->v_pointer, mem, n_bytes);
+                                       memmove (arg->v_pointer, mem, n_bytes);
                                }
                        } else {
                                if (may_be_null && !gperl_sv_is_defined (sv)) {


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