The 'forwardIf' variable inside of pfAddNatFirewallRules() is
declared as both g_autofree and const. This makes no sense.
Since the variable is g_strdup()-ed into right in the
declaration, it's not const. Drop that part of variable
declaration.
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Roman Bogorodskiy <bogorodskiy@gmail.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
* block log on virbr0
*/
int prefix = virNetworkIPDefPrefix(ipdef);
- g_autofree const char *forwardIf = g_strdup(virNetworkDefForwardIf(def, 0));
+ g_autofree char *forwardIf = g_strdup(virNetworkDefForwardIf(def, 0));
g_auto(virBuffer) pf_rules_buf = VIR_BUFFER_INITIALIZER;
g_autoptr(virCommand) cmd = virCommandNew(PFCTL);
g_autoptr(virCommand) flush_cmd = virCommandNew(PFCTL);