From 9422f77119eef3a19d8cf017a225e0e3f31cbd21 Mon Sep 17 00:00:00 2001 From: Robby Zambito Date: Sun, 3 Mar 2024 15:41:10 -0500 Subject: [PATCH] Update struct to use pointers instead of flexible length structs --- libguestfs-inspect.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libguestfs-inspect.h b/libguestfs-inspect.h index 9cd0870..c48ff7e 100644 --- a/libguestfs-inspect.h +++ b/libguestfs-inspect.h @@ -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() {