diff options
author | mjona <mjona@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2012-03-26 13:24:37 +0000 |
---|---|---|
committer | mjona <mjona@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2012-03-26 13:24:37 +0000 |
commit | 13c974ad615ac560569f20b361e82bae98ac77fc (patch) | |
tree | 57d3f90d58fdf81a384eb756052b75c79385e001 /timer.c | |
parent | 3ede2a57df6a1c2324b4b611bd5f2fd5a3c6567e (diff) | |
download | lcd4linux-13c974ad615ac560569f20b361e82bae98ac77fc.tar.gz |
Fixed realloc error handling in timer_group.c; changed the interval member in the TIMER_GROUP structure from int* to int.
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1185 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'timer.c')
-rw-r--r-- | timer.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -239,7 +239,7 @@ int timer_add(void (*callback) (void *data), void *data, const int interval, con /* no inactive timers (or none at all) found, so we have to add a new timer slot */ if (timer == nTimers) { - TIMER *tmp; + TIMER *tmp; if ((tmp = realloc(Timers, (nTimers + 1) * sizeof(*Timers))) == NULL) { /* signal unsuccessful timer creation */ |