mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-29 21:33:53 -06:00
linux-user/syscall.c: Fix indentation in prctl handling
Clean up the odd indentation of this switch statement before we double its size by adding new cases to it. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
This commit is contained in:
parent
288e65b9ee
commit
1e6722f8b0
1 changed files with 15 additions and 14 deletions
|
@ -7242,21 +7242,22 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
|
||||||
goto unimplemented;
|
goto unimplemented;
|
||||||
#endif
|
#endif
|
||||||
case TARGET_NR_prctl:
|
case TARGET_NR_prctl:
|
||||||
switch (arg1)
|
switch (arg1) {
|
||||||
{
|
case PR_GET_PDEATHSIG:
|
||||||
case PR_GET_PDEATHSIG:
|
{
|
||||||
{
|
int deathsig;
|
||||||
int deathsig;
|
ret = get_errno(prctl(arg1, &deathsig, arg3, arg4, arg5));
|
||||||
ret = get_errno(prctl(arg1, &deathsig, arg3, arg4, arg5));
|
if (!is_error(ret) && arg2
|
||||||
if (!is_error(ret) && arg2
|
&& put_user_ual(deathsig, arg2)) {
|
||||||
&& put_user_ual(deathsig, arg2))
|
goto efault;
|
||||||
goto efault;
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
ret = get_errno(prctl(arg1, arg2, arg3, arg4, arg5));
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
default:
|
||||||
|
/* Most prctl options have no pointer arguments */
|
||||||
|
ret = get_errno(prctl(arg1, arg2, arg3, arg4, arg5));
|
||||||
|
break;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
#ifdef TARGET_NR_arch_prctl
|
#ifdef TARGET_NR_arch_prctl
|
||||||
case TARGET_NR_arch_prctl:
|
case TARGET_NR_arch_prctl:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue