]> Git Repo - qemu.git/blobdiff - qemu-io.c
target-i386: Support migratable=no properly
[qemu.git] / qemu-io.c
index 795cf46c6e5c73ef8f112712fffb6d1ee31d1e2f..33c96c4c1cff1fd7a24d92b0fdf73d602a426536 100644 (file)
--- a/qemu-io.c
+++ b/qemu-io.c
@@ -356,7 +356,7 @@ static void command_loop(void)
 
 static void add_user_command(char *optarg)
 {
-    cmdline = g_realloc(cmdline, ++ncmdline * sizeof(char *));
+    cmdline = g_renew(char *, cmdline, ++ncmdline);
     cmdline[ncmdline-1] = optarg;
 }
 
@@ -433,7 +433,7 @@ int main(int argc, char **argv)
             }
             break;
         case 'T':
-            if (!trace_backend_init(optarg, NULL)) {
+            if (!trace_init_backends(optarg, NULL)) {
                 exit(1); /* error message will have been printed */
             }
             break;
This page took 0.021719 seconds and 4 git commands to generate.