Update struct to use pointers instead of flexible length structs
This commit is contained in:
@@ -6,19 +6,17 @@ enum guestfs_inspect_command_const {
|
||||
};
|
||||
|
||||
struct guestfs_ls_args {
|
||||
size_t path_length;
|
||||
char path[];
|
||||
char **paths;
|
||||
};
|
||||
struct guestfs_cat_args {};
|
||||
|
||||
struct guestfs_inpsect_command {
|
||||
char *name;
|
||||
enum guestfs_inspect_command_const command;
|
||||
union {
|
||||
struct guestfs_ls_args ls;
|
||||
struct guestfs_cat_args cat;
|
||||
} args;
|
||||
size_t name_length;
|
||||
char name[];
|
||||
};
|
||||
|
||||
static char *endpoint() {
|
||||
|
||||
Reference in New Issue
Block a user