From: ellson Date: Tue, 19 May 2009 14:03:42 +0000 (+0000) Subject: fix prototypes for C99 compiance, and to reduce compiler warning noise X-Git-Tag: LAST_LIBGRAPH~32^2~2054 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b502796b81d27bbecec9c76b0e8aefaa01f9657f;p=graphviz fix prototypes for C99 compiance, and to reduce compiler warning noise --- diff --git a/cmd/smyrna/gui/beacon.c b/cmd/smyrna/gui/beacon.c index c4c6c671c..47afe930c 100644 --- a/cmd/smyrna/gui/beacon.c +++ b/cmd/smyrna/gui/beacon.c @@ -81,7 +81,7 @@ int add_to_pick_list(topview_node * n) -int draw_node_hint_boxes() +int draw_node_hint_boxes(void) { int ind; /* int fs = 12; */ diff --git a/cmd/smyrna/gui/beacon.h b/cmd/smyrna/gui/beacon.h index 9d3d86e80..b5eaa8404 100644 --- a/cmd/smyrna/gui/beacon.h +++ b/cmd/smyrna/gui/beacon.h @@ -6,6 +6,6 @@ int pick_node(topview_node * n); int is_node_picked(topview_node * n); int remove_from_pick_list(topview_node * n); int add_to_pick_list(topview_node * n); -int draw_node_hint_boxes(); +int draw_node_hint_boxes(void); #endif diff --git a/cmd/smyrna/selection.h b/cmd/smyrna/selection.h index 08e663c06..29b2bf7a5 100644 --- a/cmd/smyrna/selection.h +++ b/cmd/smyrna/selection.h @@ -43,13 +43,13 @@ extern int select_edge(topview_edge*); extern int deselect_node(topview_node*); extern int deselect_edge(topview_edge* ); -extern int select_all_nodes(); -extern int select_all_edges(); -extern int select_all(); +extern int select_all_nodes(Agraph_t*); +extern int select_all_edges(Agraph_t*); +extern int select_all(Agraph_t*); -extern int deselect_all_nodes(); -extern int deselect_all_edges(); -extern int deselect_all(); +extern int deselect_all_nodes(Agraph_t*); +extern int deselect_all_edges(Agraph_t*); +extern int deselect_all(Agraph_t*); int point_within_sphere_with_coords(float x0, float y0, float z0, float r,float x, float y,float z); float distance_to_line(float ax,float ay,float bx,float by,float cx,float cy);