[Xfce4-commits] <xfce4-taskmanager:master> Fix compiler warnings.
Nick Schermer
noreply at xfce.org
Wed Jan 8 19:44:01 CET 2014
Updating branch refs/heads/master
to b367fdd1a95ce508c5f193a046030bf53e02662c (commit)
from f0232ca7c796345f90bfc375f48e72eaedc21d02 (commit)
commit b367fdd1a95ce508c5f193a046030bf53e02662c
Author: Nick Schermer <nick at xfce.org>
Date: Wed Jan 8 19:35:17 2014 +0100
Fix compiler warnings.
src/app-manager.h | 2 +-
src/exec-tool-button.c | 4 ++--
src/exec-tool-button.h | 2 +-
src/process-statusbar.h | 2 +-
src/process-tree-view.h | 2 +-
src/settings-tool-button.c | 4 ++--
src/settings-tool-button.h | 2 +-
src/settings.h | 2 +-
src/task-manager.c | 2 +-
src/task-manager.h | 2 +-
10 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/src/app-manager.h b/src/app-manager.h
index ebded9a..89924c3 100644
--- a/src/app-manager.h
+++ b/src/app-manager.h
@@ -38,7 +38,7 @@ struct _App
typedef struct _XtmAppManager XtmAppManager;
GType xtm_app_manager_get_type (void);
-XtmAppManager * xtm_app_manager_new ();
+XtmAppManager * xtm_app_manager_new (void);
const GArray * xtm_app_manager_get_app_list (XtmAppManager *manager);
App * xtm_app_manager_get_app_from_pid (XtmAppManager *manager, gint pid);
diff --git a/src/exec-tool-button.c b/src/exec-tool-button.c
index f814ff5..fbb4d16 100644
--- a/src/exec-tool-button.c
+++ b/src/exec-tool-button.c
@@ -35,8 +35,8 @@ struct _XtmExecToolButton
};
G_DEFINE_TYPE (XtmExecToolButton, xtm_exec_tool_button, GTK_TYPE_MENU_TOOL_BUTTON)
-static GtkWidget * construct_menu ();
-static void execute_default_command ();
+static GtkWidget * construct_menu (void);
+static void execute_default_command (void);
diff --git a/src/exec-tool-button.h b/src/exec-tool-button.h
index a08aecc..8a2c497 100644
--- a/src/exec-tool-button.h
+++ b/src/exec-tool-button.h
@@ -27,6 +27,6 @@
typedef struct _XtmExecToolButton XtmExecToolButton;
GType xtm_exec_tool_button_get_type (void);
-GtkWidget * xtm_exec_tool_button_new ();
+GtkWidget * xtm_exec_tool_button_new (void);
#endif /* !EXEC_TOOL_BUTTON_H */
diff --git a/src/process-statusbar.h b/src/process-statusbar.h
index ab68387..e0820d5 100644
--- a/src/process-statusbar.h
+++ b/src/process-statusbar.h
@@ -27,6 +27,6 @@
typedef struct _XtmProcessStatusbar XtmProcessStatusbar;
GType xtm_process_statusbar_get_type (void);
-GtkWidget * xtm_process_statusbar_new ();
+GtkWidget * xtm_process_statusbar_new (void);
#endif /* !PROCESS_STATUSBAR_H */
diff --git a/src/process-tree-view.h b/src/process-tree-view.h
index 3082806..8d2725e 100644
--- a/src/process-tree-view.h
+++ b/src/process-tree-view.h
@@ -50,7 +50,7 @@ enum
typedef struct _XtmProcessTreeView XtmProcessTreeView;
GType xtm_process_tree_view_get_type (void);
-GtkWidget * xtm_process_tree_view_new ();
+GtkWidget * xtm_process_tree_view_new (void);
void xtm_process_tree_view_get_sort_column_id (XtmProcessTreeView *treeview, gint *sort_column_id, GtkSortType *sort_type);
#endif /* !PROCESS_TREE_VIEW_H */
diff --git a/src/settings-tool-button.c b/src/settings-tool-button.c
index b7f29e5..a44b7d4 100644
--- a/src/settings-tool-button.c
+++ b/src/settings-tool-button.c
@@ -33,8 +33,8 @@ struct _XtmSettingsToolButton
};
G_DEFINE_TYPE (XtmSettingsToolButton, xtm_settings_tool_button, GTK_TYPE_MENU_TOOL_BUTTON)
-static GtkWidget * construct_menu ();
-static void show_settings_dialog ();
+static GtkWidget * construct_menu (void);
+static void show_settings_dialog (XtmSettingsToolButton *button);
diff --git a/src/settings-tool-button.h b/src/settings-tool-button.h
index 0b18bed..8af6415 100644
--- a/src/settings-tool-button.h
+++ b/src/settings-tool-button.h
@@ -27,6 +27,6 @@
typedef struct _XtmSettingsToolButton XtmSettingsToolButton;
GType xtm_settings_tool_button_get_type (void);
-GtkWidget * xtm_settings_tool_button_new ();
+GtkWidget * xtm_settings_tool_button_new (void);
#endif /* !SETTINGS_TOOL_BUTTON_H */
diff --git a/src/settings.h b/src/settings.h
index 64f0c9d..7a2bc3f 100644
--- a/src/settings.h
+++ b/src/settings.h
@@ -26,7 +26,7 @@
typedef struct _XtmSettings XtmSettings;
GType xtm_settings_get_type (void);
-XtmSettings * xtm_settings_get_default ();
+XtmSettings * xtm_settings_get_default (void);
diff --git a/src/task-manager.c b/src/task-manager.c
index 76dbb9c..4619a44 100644
--- a/src/task-manager.c
+++ b/src/task-manager.c
@@ -83,7 +83,7 @@ static void model_update_task (GtkTreeModel *model, Task *task);
static void model_mark_tree_iter_as_removed (GtkTreeModel *model, GtkTreeIter *iter);
static void model_remove_tree_iter (GtkTreeModel *model, GtkTreeIter *iter);
static void model_find_tree_iter_for_pid (GtkTreeModel *model, guint pid, GtkTreeIter *iter);
-static glong __current_timestamp ();
+static glong __current_timestamp (void);
diff --git a/src/task-manager.h b/src/task-manager.h
index a8195e6..fa90f8f 100644
--- a/src/task-manager.h
+++ b/src/task-manager.h
@@ -91,7 +91,7 @@ enum
};
void get_owner_uid (guint *owner_uid, gchar **owner_uid_name);
-gchar * get_hostname ();
+gchar * get_hostname (void);
gboolean send_signal_to_pid (guint pid, gint xtm_signal);
gboolean set_priority_to_pid (guint pid, gint priority);
More information about the Xfce4-commits
mailing list