Index: polyhelp.c =================================================================== --- polyhelp.c (revision 17328) +++ polyhelp.c (revision 17329) @@ -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 argc, const char **argv, pcb_coord_t x, pcb_coord_t y) +static int pcb_act_PolyHatch(int argc, const char **argv) { pcb_coord_t period = 0; pcb_cpoly_hatchdir_t dir = 0; @@ -468,7 +468,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 argc, const char **argv, pcb_coord_t x, pcb_coord_t y) +static int pcb_act_PolyOffs(int argc, const char **argv) { pcb_coord_t offs; pcb_bool succ; Index: topoly.c =================================================================== --- topoly.c (revision 17328) +++ topoly.c (revision 17329) @@ -316,11 +316,12 @@ 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 argc, const char **argv, pcb_coord_t x, pcb_coord_t y) +int pcb_act_topoly(int argc, const char **argv) { void *r1, *r2, *r3; if (argc == 0) { + pcb_coord_t x, y; pcb_hid_get_coords("Click on a line or arc of the contour loop", &x, &y); if (pcb_search_screen(x, y, CONT_TYPE, &r1, &r2, &r3) == 0) { pcb_message(PCB_MSG_ERROR, "ToPoly(): failed to find a line or arc there\n"); Index: topoly.h =================================================================== --- topoly.h (revision 17328) +++ topoly.h (revision 17329) @@ -45,6 +45,6 @@ extern const char pcb_acts_topoly[]; extern const char pcb_acth_topoly[]; -int pcb_act_topoly(int argc, const char **argv, pcb_coord_t x, pcb_coord_t y); +int pcb_act_topoly(int argc, const char **argv); #endif