Index: polyhelp.c =================================================================== --- polyhelp.c (revision 17460) +++ polyhelp.c (revision 17461) @@ -363,7 +363,7 @@ static const char pcb_acts_PolyHatch[] = "PolyHatch([spacing], [hvcp])\nPolyHatch(interactive)\n"; static const char pcb_acth_PolyHatch[] = "hatch the selected polygon(s) with lines of the current style; lines are drawn on the current layer; flags are h:horizontal, v:vertical, c:contour, p:poly"; -static int pcb_act_PolyHatch(int oargc, const char **oargv) +static fgw_error_t pcb_act_PolyHatch(int oargc, const char **oargv) { PCB_OLD_ACT_BEGIN; pcb_coord_t period = 0; @@ -470,7 +470,7 @@ static const char pcb_acts_PolyOffs[] = "PolyOffs(offset)\n"; static const char pcb_acth_PolyOffs[] = "replicate the outer contour of the selected polygon(s) with growing or shrinking them by offset; the new polygon is drawn on the current layer"; -static int pcb_act_PolyOffs(int oargc, const char **oargv) +static fgw_error_t pcb_act_PolyOffs(int oargc, const char **oargv) { PCB_OLD_ACT_BEGIN; pcb_coord_t offs; Index: topoly.c =================================================================== --- topoly.c (revision 17460) +++ topoly.c (revision 17461) @@ -316,7 +316,7 @@ const char pcb_acts_topoly[] = "ToPoly()\nToPoly(outline)\n"; const char pcb_acth_topoly[] = "convert a closed loop of lines and arcs into a polygon"; -int pcb_act_topoly(int oargc, const char **oargv) +fgw_error_t pcb_act_topoly(int oargc, const char **oargv) { PCB_OLD_ACT_BEGIN; void *r1, *r2, *r3; Index: topoly.h =================================================================== --- topoly.h (revision 17460) +++ topoly.h (revision 17461) @@ -29,6 +29,7 @@ #include "board.h" #include "obj_common.h" +#include typedef enum pcb_topoly_e { PCB_TOPOLY_KEEP_ORIG = 1, /* keep original objects */ @@ -45,6 +46,6 @@ extern const char pcb_acts_topoly[]; extern const char pcb_acth_topoly[]; -int pcb_act_topoly(int oargc, const char **oargv); +fgw_error_t pcb_act_topoly(int oargc, const char **oargv); #endif