declarations at the beginning of functions (ISO C90 forbids mixed declarations and code)

This commit is contained in:
Landry Breuil
2018-05-28 21:06:39 +02:00
parent 8d4f013877
commit c507f13d86

View File

@@ -393,7 +393,7 @@ xtm_task_manager_update_model (XtmTaskManager *manager)
GArray *array; GArray *array;
guint i; guint i;
GtkTreeIter iter; GtkTreeIter iter;
gboolean valid; gboolean valid, need_update, update_cmd_line;
glong timestamp; glong timestamp;
g_return_if_fail (XTM_IS_TASK_MANAGER (manager)); 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. */ /* Task alive, check for update. */
gboolean need_update = FALSE; need_update = FALSE;
gboolean update_cmd_line = FALSE; update_cmd_line = FALSE;
/* Update the model (with the rest) only if needed, this keeps the CPU cool */ /* 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))) if (model_update_forced || 0 != memcmp(task, task_new, sizeof(Task)))