mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-16 17:22:44 +03:00
Scope reduce some variables.
This commit is contained in:
parent
3ce61d6950
commit
4fbe86bc5a
@ -129,13 +129,14 @@ nserror riscos_schedule(int t, void (*callback)(void *p), void *p)
|
|||||||
bool schedule_run(void)
|
bool schedule_run(void)
|
||||||
{
|
{
|
||||||
struct sched_entry *entry;
|
struct sched_entry *entry;
|
||||||
void (*callback)(void *p);
|
|
||||||
void *p;
|
|
||||||
os_t now;
|
os_t now;
|
||||||
|
|
||||||
now = os_read_monotonic_time();
|
now = os_read_monotonic_time();
|
||||||
|
|
||||||
while (sched_queue.next && sched_queue.next->time <= now) {
|
while (sched_queue.next && sched_queue.next->time <= now) {
|
||||||
|
void (*callback)(void *p);
|
||||||
|
void *p;
|
||||||
|
|
||||||
entry = sched_queue.next;
|
entry = sched_queue.next;
|
||||||
callback = entry->callback;
|
callback = entry->callback;
|
||||||
p = entry->p;
|
p = entry->p;
|
||||||
|
Loading…
Reference in New Issue
Block a user