Unify fw3_default and fw3_target enums
[project/firewall3.git] / zones.h
diff --git a/zones.h b/zones.h
index c84897bb8539496ba03b4817e30acf2d7a8b0778..8f94ccff7f5d67b0b456bea83937c06bb622a830 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)