diff options
| author | rsc | 2007-08-24 20:28:08 +0000 |
|---|---|---|
| committer | rsc | 2007-08-24 20:28:08 +0000 |
| commit | 97ac612fb16748e6b011de4deaa803ec5f0afef8 (patch) | |
| tree | 8cc471a789517269791126b29b2ff82915e6bbe6 /syscall.c | |
| parent | ffa58d3616e5d829faa8e8a201f25c785800ccb2 (diff) | |
nits
Diffstat (limited to 'syscall.c')
| -rw-r--r-- | syscall.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -133,8 +133,9 @@ static int (*syscalls[])(void) = { void syscall(void) { - int num = cp->tf->eax; - + int num; + + num = cp->tf->eax; if(num >= 0 && num < NELEM(syscalls) && syscalls[num]) cp->tf->eax = syscalls[num](); else { |
