From 745168103cf981345f3ab62d884d70de14524eb4 Mon Sep 17 00:00:00 2001 From: michael Date: Thu, 23 May 2013 03:07:28 +0000 Subject: indentation git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1199 3ae390bd-cb1e-0410-b409-cd5a39f66f1f --- timer_group.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'timer_group.c') diff --git a/timer_group.c b/timer_group.c index 4dfbb1b..a5ac635 100644 --- a/timer_group.c +++ b/timer_group.c @@ -185,7 +185,7 @@ int timer_add_group(const int interval) if (TimerGroups[group].active == TIMER_INACTIVE) { /* we've just found one, so let's reuse it ("group" holds its ID) by breaking the loop */ - debug("Reusing Timergroup %i", group); + debug("Reusing Timergroup %i", group); break; } } @@ -196,17 +196,17 @@ int timer_add_group(const int interval) TIMER_GROUP *tmp; if ((tmp = realloc(TimerGroups, (nTimerGroups + 1) * sizeof(*TimerGroups))) == NULL) { - error("Error expanding TimerGroups"); + error("Error expanding TimerGroups"); /* signal unsuccessful timer group creation */ return -1; } TimerGroups = tmp; nTimerGroups++; - if ((TimerGroups[group].interval = malloc(sizeof(int))) == NULL) { - /* signal unsuccessful timer group creation */ - return -1; - } + if ((TimerGroups[group].interval = malloc(sizeof(int))) == NULL) { + /* signal unsuccessful timer group creation */ + return -1; + } } /* initialize timer group's interval */ @@ -513,9 +513,9 @@ void timer_exit_group(void) /* remove generic timer */ timer_remove(timer_process_group, TimerGroups[group].interval); - /* free memory allocated for callback data (i.e. the group's - triggering interval in milliseconds) */ - free(TimerGroups[group].interval); + /* free memory allocated for callback data (i.e. the group's + triggering interval in milliseconds) */ + free(TimerGroups[group].interval); } /* reset number of allocated timer groups */ -- cgit v1.2.3