summaryrefslogtreecommitdiffstats
path: root/qemu-io.c
diff options
context:
space:
mode:
authorMarc-André Lureau2022-02-21 11:11:47 +0100
committerMarc-André Lureau2022-03-22 11:46:18 +0100
commit336d354ba73f62099b1a931662694b23cb3d2b65 (patch)
tree22487bb6c811aae73d2c81b17d7ff0d6ce046006 /qemu-io.c
parentqga: remove bswap.h include (diff)
downloadqemu-336d354ba73f62099b1a931662694b23cb3d2b65.tar.gz
qemu-336d354ba73f62099b1a931662694b23cb3d2b65.tar.xz
qemu-336d354ba73f62099b1a931662694b23cb3d2b65.zip
error: use GLib to remember the program name
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'qemu-io.c')
-rw-r--r--qemu-io.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/qemu-io.c b/qemu-io.c
index e45a15c41a..eb8afc8b41 100644
--- a/qemu-io.c
+++ b/qemu-io.c
@@ -323,7 +323,7 @@ static char *get_prompt(void)
static char prompt[FILENAME_MAX + 2 /*"> "*/ + 1 /*"\0"*/ ];
if (!prompt[0]) {
- snprintf(prompt, sizeof(prompt), "%s> ", error_get_progname());
+ snprintf(prompt, sizeof(prompt), "%s> ", g_get_prgname());
}
return prompt;
@@ -598,10 +598,10 @@ int main(int argc, char **argv)
break;
case 'V':
printf("%s version " QEMU_FULL_VERSION "\n"
- QEMU_COPYRIGHT "\n", error_get_progname());
+ QEMU_COPYRIGHT "\n", g_get_prgname());
exit(0);
case 'h':
- usage(error_get_progname());
+ usage(g_get_prgname());
exit(0);
case 'U':
force_share = true;
@@ -613,13 +613,13 @@ int main(int argc, char **argv)
imageOpts = true;
break;
default:
- usage(error_get_progname());
+ usage(g_get_prgname());
exit(1);
}
}
if ((argc - optind) > 1) {
- usage(error_get_progname());
+ usage(g_get_prgname());
exit(1);
}