Revision c227f099 qemu-img.c
b/qemu-img.c | ||
---|---|---|
31 | 31 |
#include <windows.h> |
32 | 32 |
#endif |
33 | 33 |
|
34 |
typedef struct img_cmd { |
|
34 |
typedef struct img_cmd_t {
|
|
35 | 35 |
const char *name; |
36 | 36 |
int (*handler)(int argc, char **argv); |
37 |
} a_img_cmd;
|
|
37 |
} img_cmd_t;
|
|
38 | 38 |
|
39 | 39 |
/* Default to cache=writeback as data integrity is not important for qemu-tcg. */ |
40 | 40 |
#define BRDV_O_FLAGS BDRV_O_CACHE_WB |
... | ... | |
1035 | 1035 |
return 0; |
1036 | 1036 |
} |
1037 | 1037 |
|
1038 |
static const a_img_cmd img_cmds[] = {
|
|
1038 |
static const img_cmd_t img_cmds[] = {
|
|
1039 | 1039 |
#define DEF(option, callback, arg_string) \ |
1040 | 1040 |
{ option, callback }, |
1041 | 1041 |
#include "qemu-img-cmds.h" |
... | ... | |
1046 | 1046 |
|
1047 | 1047 |
int main(int argc, char **argv) |
1048 | 1048 |
{ |
1049 |
const a_img_cmd *cmd;
|
|
1049 |
const img_cmd_t *cmd;
|
|
1050 | 1050 |
const char *cmdname; |
1051 | 1051 |
|
1052 | 1052 |
bdrv_init(); |
Also available in: Unified diff