From 160649f82aa73b3b66a7adf835bf03685a40bb13 Mon Sep 17 00:00:00 2001 From: ellson Date: Mon, 23 Feb 2009 16:16:28 +0000 Subject: [PATCH] =?utf8?q?Janitor:=20fix=20more:=20"warning:=20function=20?= =?utf8?q?declaration=20isn=E2=80=99t=20a=20prototype"?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- cmd/smyrna/gui/gui.c | 14 +++++++------- cmd/smyrna/gui/gui.h | 14 +++++++------- cmd/smyrna/smyrnadefs.h | 2 +- cmd/smyrna/tvnodes.c | 40 ++++++++++++++++++++-------------------- 4 files changed, 35 insertions(+), 35 deletions(-) diff --git a/cmd/smyrna/gui/gui.c b/cmd/smyrna/gui/gui.c index 2e5ee9412..a2959c21a 100755 --- a/cmd/smyrna/gui/gui.c +++ b/cmd/smyrna/gui/gui.c @@ -55,7 +55,7 @@ attribute attr[MAXIMUM_WIDGET_COUNT]; //loads object properties form and does some fixes //call this function only ones -void create_object_properties() +void create_object_properties(void) { #ifdef UNUSED char *data0 = "TEST0"; @@ -82,18 +82,18 @@ void create_object_properties() } //call this after create_object_properties() -void object_properties_node_init() +void object_properties_node_init(void) { } -void object_properties_edge_init() //customize window for Edges +void object_properties_edge_init(void) //customize window for Edges { } -void object_properties_cluster_init() //customize window for Cluster +void object_properties_cluster_init(void) //customize window for Cluster { } -void object_properties_graph_init() //customize window for Graph , this shows the graph default values +void object_properties_graph_init(void) //customize window for Graph , this shows the graph default values { } @@ -134,7 +134,7 @@ void graph_properties_init(int newgraph) //initialize little open graph dialog result = gtk_dialog_run(GTK_DIALOG(gladewidget)); } -GtkComboBox *get_SelectGraph() +GtkComboBox *get_SelectGraph(void) { GtkComboBox *cb; if (!cbSelectGraph) { @@ -577,7 +577,7 @@ void change_selected_edge_attributes(Agraph_t * g, char *attrname, } } -void load_attributes() +void load_attributes(void) { FILE *file; char line[BUFSIZ]; diff --git a/cmd/smyrna/gui/gui.h b/cmd/smyrna/gui/gui.h index afcff3c86..e12412af5 100644 --- a/cmd/smyrna/gui/gui.h +++ b/cmd/smyrna/gui/gui.h @@ -47,19 +47,19 @@ extern int widgetcounter; //number of attributes counted dynamically, might be r extern attribute attr[MAXIMUM_WIDGET_COUNT]; -void create_object_properties(); //creates general purpose object properties template -void object_properties_node_init(); //customize window for Nodes -void object_properties_edge_init(); //customize window for Edges -void object_properties_cluster_init(); //customize window for Cluster -void object_properties_graph_init(); //customize window for Graph , this shows the graph default values +void create_object_properties(void); //creates general purpose object properties template +void object_properties_node_init(void); //customize window for Nodes +void object_properties_edge_init(void); //customize window for Edges +void object_properties_cluster_init(void); //customize window for Cluster +void object_properties_graph_init(void); //customize window for Graph , this shows the graph default values void graph_properties_init(int newgraph); //initialize little open graph dialog -GtkComboBox *get_SelectGraph(); //freaking GLADE!!!!! +GtkComboBox *get_SelectGraph(void); //freaking GLADE!!!!! int update_graph_properties(Agraph_t * graph); //updates graph from gui void load_graph_properties(Agraph_t * graph); //load from graph to gui void update_object_properties(int typeIndex, Agraph_t * g); //updates objects from gui(node ,edge, cluster) int load_object_properties(gve_element typeIndex, Agraph_t * g); -void load_attributes(); //loads attributes from a text file +void load_attributes(void); //loads attributes from a text file void change_selected_graph_attributes(Agraph_t * g, char *attrname, char *attrvalue); void change_selected_node_attributes(Agraph_t * g, char *attrname, diff --git a/cmd/smyrna/smyrnadefs.h b/cmd/smyrna/smyrnadefs.h index cbef4a333..064e497cd 100644 --- a/cmd/smyrna/smyrnadefs.h +++ b/cmd/smyrna/smyrnadefs.h @@ -506,7 +506,7 @@ extern int respond; extern char* smyrnaPath (char* suffix); extern char* smyrnaGlade; -extern void glexpose(); +extern void glexpose(void); extern char* layout2s (gvk_layout gvkl); extern gvk_layout s2layout (char* s); diff --git a/cmd/smyrna/tvnodes.c b/cmd/smyrna/tvnodes.c index 67711b23c..d52ad1922 100755 --- a/cmd/smyrna/tvnodes.c +++ b/cmd/smyrna/tvnodes.c @@ -41,7 +41,7 @@ void clear_tv_filter(tv_filter * TV_Filter) } static -tv_filter *create_tv_filter() +tv_filter *create_tv_filter(void) { tv_filter *f; f = NEW(tv_filter); @@ -104,7 +104,7 @@ set_filter(tv_filter * TV_Filter, char *MinData1, char *MaxData1, #ifdef UNUSED static -int reverse_selection() +int reverse_selection(void) { int i = 0; for (i; i < view->Topview->Nodecount; i++) { @@ -308,7 +308,7 @@ static int update_node_gui_objects(tv_node * TV_Node) } -int tv_nodes_last_page() +int tv_nodes_last_page(void) { if (TV_Nodes.activepage < TV_Nodes.pagecount) return tv_nodes_goto_page(TV_Nodes.pagecount); @@ -316,7 +316,7 @@ int tv_nodes_last_page() return 0; } -int tv_nodes_first_page() +int tv_nodes_first_page(void) { if (TV_Nodes.activepage > 0) return tv_nodes_goto_page(0); @@ -324,7 +324,7 @@ int tv_nodes_first_page() return 0; } -static int hide_data_widgets() +static int hide_data_widgets(void) { int i; for (i = 0; i < MAX_NODE_PER_PAGE; i++) { @@ -387,7 +387,7 @@ int tv_nodes_goto_page(int page) return 1; } -int tv_nodes_prior_page() +int tv_nodes_prior_page(void) { if (TV_Nodes.activepage > 0) { return tv_nodes_goto_page(TV_Nodes.activepage - 1); @@ -396,7 +396,7 @@ int tv_nodes_prior_page() } -int tv_nodes_next_page() +int tv_nodes_next_page(void) { if (TV_Nodes.activepage < TV_Nodes.pagecount) { return tv_nodes_goto_page(TV_Nodes.activepage + 1); @@ -404,7 +404,7 @@ int tv_nodes_next_page() return 0; } -void execute_tv_nodes() +void execute_tv_nodes(void) { gtk_widget_hide(glade_xml_get_widget(xml, "frmTVNodes")); @@ -420,7 +420,7 @@ void execute_tv_nodes() } -int reset_page_History() +int reset_page_History(void) { /* if(TV_Nodes.page_history_count > 0) { @@ -443,7 +443,7 @@ static int push_to_page_history(int index) } #ifdef UNUSED -static int pop_from_page_history() +static int pop_from_page_history(void) { if (TV_Nodes.page_history_count > 0) { int return_value; @@ -458,7 +458,7 @@ static int pop_from_page_history() } #endif -static int set_data_attributes() +static int set_data_attributes(void) { GtkLabel *lblData1; GtkLabel *lblData2; @@ -491,7 +491,7 @@ static int set_data_attributes() } -int prepare_page_history() +int prepare_page_history(void) { GtkLabel *lblTVPage; GtkSpinButton *spn; @@ -567,7 +567,7 @@ int create_save_subgraph_from_filter(char* filename) } -int update_TV_data_from_gui() +int update_TV_data_from_gui(void) { int i; int index = 0; @@ -623,7 +623,7 @@ int update_TV_data_from_gui() } -int apply_filter_from_gui() +int apply_filter_from_gui(void) { int selected; int visible; @@ -685,7 +685,7 @@ int apply_filter_from_gui() } -int tv_select_all() +int tv_select_all(void) { tv_node tvn; @@ -719,7 +719,7 @@ int tv_unselect_all() } -int tv_highligh_all() +int tv_highligh_all(void) { tv_node tvn; int i; @@ -735,7 +735,7 @@ int tv_highligh_all() } -int tv_unhighligh_all() +int tv_unhighligh_all(void) { tv_node tvn; int i; @@ -750,7 +750,7 @@ int tv_unhighligh_all() } -int tv_show_all() +int tv_show_all(void) { tv_node tvn; int i; @@ -767,7 +767,7 @@ int tv_show_all() } -int tv_hide_all() +int tv_hide_all(void) { tv_node tvn; int i; @@ -782,7 +782,7 @@ int tv_hide_all() } -int tv_save_as() +int tv_save_as(void) { GtkWidget *dialog; dialog = gtk_file_chooser_dialog_new("Save File", -- 2.40.0