Skip to content

Commit d80fcdc

Browse files
committed
Fix typo in linux map_syscall
1 parent a7ad66f commit d80fcdc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

qiling/os/linux/map_syscall.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
1212
from qiling.os.posix.posix import SYSCALL_PREF
1313

1414
def map_syscall(ql, syscall_num):
15-
syscalls_table = {
15+
syscall_table = {
1616
QL_ARCH.ARM64: arm64_syscall_table,
1717
QL_ARCH.ARM: arm_syscall_table,
1818
QL_ARCH.X8664: x8664_syscall_table,
1919
QL_ARCH.X86: x86_syscall_table,
2020
QL_ARCH.MIPS: mips_syscall_table,
21-
}.get(ql.archtype, None)
21+
}[ql.archtype]
2222

23-
return f'{SYSCALL_PREF}{syscalls_table[syscall_num]}'
23+
return f'{SYSCALL_PREF}{syscall_table[syscall_num]}'
2424

2525
arm_syscall_table = {
2626
0: "restart_syscall",

0 commit comments

Comments
 (0)