diff options
author | michael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2013-05-23 03:07:28 +0000 |
---|---|---|
committer | michael <michael@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2013-05-23 03:07:28 +0000 |
commit | 745168103cf981345f3ab62d884d70de14524eb4 (patch) | |
tree | f69b1cf5bf6afaa8fcd7118bdf03b8dc409137d9 /timer_group.c | |
parent | ab5d1fd17f1892b25299b5dd7ae7de0c5121613e (diff) | |
download | lcd4linux-745168103cf981345f3ab62d884d70de14524eb4.tar.gz |
indentation
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1199 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'timer_group.c')
-rw-r--r-- | timer_group.c | 18 |
1 files changed, 9 insertions, 9 deletions
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 */ |