diff --git a/src/redirect/profile.c b/src/redirect/profile.c index 44a3090..ca38413 100644 --- a/src/redirect/profile.c +++ b/src/redirect/profile.c @@ -18,10 +18,7 @@ LsiRedirectProfile *lsi_redirect_profile_new(const char *name) { - LsiRedirectProfile p = { - .name = strdup(name), - .op_table = {{ 0 }}, - }; + LsiRedirectProfile p = { .name = strdup(name), { 0 } }; LsiRedirectProfile *ret = NULL; if (!p.name) { return NULL; diff --git a/src/redirect/redirect.h b/src/redirect/redirect.h index 08f6bb8..e61e286 100644 --- a/src/redirect/redirect.h +++ b/src/redirect/redirect.h @@ -53,10 +53,9 @@ typedef enum { LSI_OPERATION_OPEN = 0, LSI_NUM_OPERATIONS } LsiRedirectOperation typedef struct LsiRedirectProfile { char *name; /**< Name for this profile */ - LsiRedirect op_table[LSI_NUM_OPERATIONS]; /* vtable information */ + LsiRedirect *op_table[LSI_NUM_OPERATIONS]; /* vtable information */ } LsiRedirectProfile; - /** * Construct a new LsiRedirectProfile * @@ -72,7 +71,6 @@ LsiRedirectProfile *lsi_redirect_profile_new(const char *name); */ void lsi_redirect_profile_free(LsiRedirectProfile *profile); - /* * Editor modelines - https://www.wireshark.org/tools/modelines.html *