Преглед на файлове

plugins: update lockstep to use g_memdup2

The old g_memdup is deprecated, use the replacement.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20230630180423.558337-22-alex.bennee@linaro.org>
Alex Bennée преди 2 години
родител
ревизия
ee293103b0
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      contrib/plugins/lockstep.c

+ 1 - 1
contrib/plugins/lockstep.c

@@ -130,7 +130,7 @@ static void report_divergance(ExecState *us, ExecState *them)
         }
         }
     }
     }
     divergence_log = g_slist_prepend(divergence_log,
     divergence_log = g_slist_prepend(divergence_log,
-                                     g_memdup(&divrec, sizeof(divrec)));
+                                     g_memdup2(&divrec, sizeof(divrec)));
 
 
     /* Output short log entry of going out of sync... */
     /* Output short log entry of going out of sync... */
     if (verbose || divrec.distance == 1 || diverged) {
     if (verbose || divrec.distance == 1 || diverged) {