mirror of
https://github.com/sudo-project/sudo.git
synced 2025-09-01 14:55:12 +00:00
Fix shadowed variable warning on aarch64.
This commit is contained in:
@@ -88,9 +88,9 @@
|
|||||||
# define reg_arg4(x) (x).regs[3] /* x3 */
|
# define reg_arg4(x) (x).regs[3] /* x3 */
|
||||||
# define reg_set_syscall(_r, _nr) do { \
|
# define reg_set_syscall(_r, _nr) do { \
|
||||||
struct iovec _iov; \
|
struct iovec _iov; \
|
||||||
long syscallno = (_nr); \
|
long _syscallno = (_nr); \
|
||||||
_iov.iov_base = &syscallno; \
|
_iov.iov_base = &_syscallno; \
|
||||||
_iov.iov_len = sizeof(syscallno); \
|
_iov.iov_len = sizeof(_syscallno); \
|
||||||
ptrace(PTRACE_SETREGSET, pid, NT_ARM_SYSTEM_CALL, &_iov); \
|
ptrace(PTRACE_SETREGSET, pid, NT_ARM_SYSTEM_CALL, &_iov); \
|
||||||
} while (0)
|
} while (0)
|
||||||
#elif defined(__arm__)
|
#elif defined(__arm__)
|
||||||
|
Reference in New Issue
Block a user