aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2007-11-11 03:33:13 +0000
committerpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2007-11-11 03:33:13 +0000
commit3f379ab18741e75325cfca22f368de846d8b89f1 (patch)
tree5f2628d03742fa16d2131f5c1e6a8229232cadbf
parentfaf07963cb03f98d52ca1f7fde7482a3cb309bcc (diff)
Cleanup qemu-img.c.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3579 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r--qemu-img.c19
1 files changed, 3 insertions, 16 deletions
diff --git a/qemu-img.c b/qemu-img.c
index 095a59338b..f1a8aebf5e 100644
--- a/qemu-img.c
+++ b/qemu-img.c
@@ -64,20 +64,7 @@ char *qemu_strdup(const char *str)
return ptr;
}
-void term_printf(const char *fmt, ...)
-{
- va_list ap;
- va_start(ap, fmt);
- vprintf(fmt, ap);
- va_end(ap);
-}
-
-void term_print_filename(const char *filename)
-{
- term_printf(filename);
-}
-
-void __attribute__((noreturn)) error(const char *fmt, ...)
+static void __attribute__((noreturn)) error(const char *fmt, ...)
{
va_list ap;
va_start(ap, fmt);
@@ -93,7 +80,7 @@ static void format_print(void *opaque, const char *name)
printf(" %s", name);
}
-void help(void)
+static void help(void)
{
printf("qemu-img version " QEMU_VERSION ", Copyright (c) 2004-2007 Fabrice Bellard\n"
"usage: qemu-img command [command options]\n"
@@ -175,7 +162,7 @@ static void term_init(void)
atexit(term_exit);
}
-int read_password(char *buf, int buf_size)
+static int read_password(char *buf, int buf_size)
{
uint8_t ch;
int i, ret;