diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2014-05-30 22:27:07 +0100 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2014-05-30 22:27:07 +0100 |
commit | 4fbe86bc5a87d98adb49da85685d5c097bd91452 (patch) | |
tree | 9ad4ddd18e89d768e8c948897023eaceba0cb4a8 /riscos/schedule.c | |
parent | 3ce61d6950f5c07991468f1ec4bb1f4915cb60e8 (diff) | |
download | netsurf-4fbe86bc5a87d98adb49da85685d5c097bd91452.tar.gz netsurf-4fbe86bc5a87d98adb49da85685d5c097bd91452.tar.bz2 |
Scope reduce some variables.
Diffstat (limited to 'riscos/schedule.c')
-rw-r--r-- | riscos/schedule.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/riscos/schedule.c b/riscos/schedule.c index 6788811e2..286bdefa9 100644 --- a/riscos/schedule.c +++ b/riscos/schedule.c @@ -129,13 +129,14 @@ nserror riscos_schedule(int t, void (*callback)(void *p), void *p) bool schedule_run(void) { struct sched_entry *entry; - void (*callback)(void *p); - void *p; os_t now; now = os_read_monotonic_time(); while (sched_queue.next && sched_queue.next->time <= now) { + void (*callback)(void *p); + void *p; + entry = sched_queue.next; callback = entry->callback; p = entry->p; |