Commit 3f379ab18741e75325cfca22f368de846d8b89f1

Authored by pbrook
1 parent faf07963

Cleanup qemu-img.c.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3579 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 3 additions and 16 deletions
qemu-img.c
@@ -64,20 +64,7 @@ char *qemu_strdup(const char *str) @@ -64,20 +64,7 @@ char *qemu_strdup(const char *str)
64 return ptr; 64 return ptr;
65 } 65 }
66 66
67 -void term_printf(const char *fmt, ...)  
68 -{  
69 - va_list ap;  
70 - va_start(ap, fmt);  
71 - vprintf(fmt, ap);  
72 - va_end(ap);  
73 -}  
74 -  
75 -void term_print_filename(const char *filename)  
76 -{  
77 - term_printf(filename);  
78 -}  
79 -  
80 -void __attribute__((noreturn)) error(const char *fmt, ...) 67 +static void __attribute__((noreturn)) error(const char *fmt, ...)
81 { 68 {
82 va_list ap; 69 va_list ap;
83 va_start(ap, fmt); 70 va_start(ap, fmt);
@@ -93,7 +80,7 @@ static void format_print(void *opaque, const char *name) @@ -93,7 +80,7 @@ static void format_print(void *opaque, const char *name)
93 printf(" %s", name); 80 printf(" %s", name);
94 } 81 }
95 82
96 -void help(void) 83 +static void help(void)
97 { 84 {
98 printf("qemu-img version " QEMU_VERSION ", Copyright (c) 2004-2007 Fabrice Bellard\n" 85 printf("qemu-img version " QEMU_VERSION ", Copyright (c) 2004-2007 Fabrice Bellard\n"
99 "usage: qemu-img command [command options]\n" 86 "usage: qemu-img command [command options]\n"
@@ -175,7 +162,7 @@ static void term_init(void) @@ -175,7 +162,7 @@ static void term_init(void)
175 atexit(term_exit); 162 atexit(term_exit);
176 } 163 }
177 164
178 -int read_password(char *buf, int buf_size) 165 +static int read_password(char *buf, int buf_size)
179 { 166 {
180 uint8_t ch; 167 uint8_t ch;
181 int i, ret; 168 int i, ret;