Revision 3f379ab1
b/qemu-img.c | ||
---|---|---|
64 | 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 | 69 |
va_list ap; |
83 | 70 |
va_start(ap, fmt); |
... | ... | |
93 | 80 |
printf(" %s", name); |
94 | 81 |
} |
95 | 82 |
|
96 |
void help(void) |
|
83 |
static void help(void)
|
|
97 | 84 |
{ |
98 | 85 |
printf("qemu-img version " QEMU_VERSION ", Copyright (c) 2004-2007 Fabrice Bellard\n" |
99 | 86 |
"usage: qemu-img command [command options]\n" |
... | ... | |
175 | 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 | 167 |
uint8_t ch; |
181 | 168 |
int i, ret; |
Also available in: Unified diff