Unify fw3_default and fw3_target enums
[project/firewall3.git] / zones.h
diff --git a/zones.h b/zones.h
index c84897b..8f94ccf 100644 (file)
--- a/zones.h
+++ b/zones.h
@@ -40,7 +40,7 @@ struct fw3_zone * fw3_lookup_zone(struct fw3_state *state, const char *name,
                                   bool running);
 
 #define fw3_to_src_target(t) \
-       (FW3_TARGET_SRC_ACCEPT - FW3_TARGET_ACCEPT + t)
+       (FW3_FLAG_SRC_ACCEPT - FW3_FLAG_ACCEPT + t)
 
 #define fw3_free_zone(zone) \
        fw3_free_object(zone, fw3_zone_opts)