summaryrefslogtreecommitdiff
path: root/riscos
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2014-05-30 22:27:07 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2014-05-30 22:27:07 +0100
commit4fbe86bc5a87d98adb49da85685d5c097bd91452 (patch)
tree9ad4ddd18e89d768e8c948897023eaceba0cb4a8 /riscos
parent3ce61d6950f5c07991468f1ec4bb1f4915cb60e8 (diff)
downloadnetsurf-4fbe86bc5a87d98adb49da85685d5c097bd91452.tar.gz
netsurf-4fbe86bc5a87d98adb49da85685d5c097bd91452.tar.bz2
Scope reduce some variables.
Diffstat (limited to 'riscos')
-rw-r--r--riscos/schedule.c5
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;