From c507f13d86647410fa7beac383efc22fe674a83b Mon Sep 17 00:00:00 2001 From: Landry Breuil Date: Mon, 28 May 2018 21:06:39 +0200 Subject: [PATCH] declarations at the beginning of functions (ISO C90 forbids mixed declarations and code) --- src/task-manager.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/task-manager.c b/src/task-manager.c index 1a005ed..78fa825 100644 --- a/src/task-manager.c +++ b/src/task-manager.c @@ -393,7 +393,7 @@ xtm_task_manager_update_model (XtmTaskManager *manager) GArray *array; guint i; GtkTreeIter iter; - gboolean valid; + gboolean valid, need_update, update_cmd_line; glong timestamp; g_return_if_fail (XTM_IS_TASK_MANAGER (manager)); @@ -444,8 +444,8 @@ xtm_task_manager_update_model (XtmTaskManager *manager) } /* Task alive, check for update. */ - gboolean need_update = FALSE; - gboolean update_cmd_line = FALSE; + need_update = FALSE; + update_cmd_line = FALSE; /* Update the model (with the rest) only if needed, this keeps the CPU cool */ if (model_update_forced || 0 != memcmp(task, task_new, sizeof(Task)))