aboutsummaryrefslogtreecommitdiff
path: root/hw/mem
diff options
context:
space:
mode:
authorMichael Tokarev <mjt@tls.msk.ru>2024-03-31 13:07:35 +0300
committerRichard Henderson <richard.henderson@linaro.org>2024-04-24 15:46:00 -0700
commit124a1341a66287ab8f4ce3de3c98eed6747a639f (patch)
tree52d32cf10f66d2c57a438d73a8a8c0a139bc3ea2 /hw/mem
parent04f6fb897a5aeb3e356a7b889869c9962f9c16c7 (diff)
downloadqemu-124a1341a66287ab8f4ce3de3c98eed6747a639f.zip
qemu-124a1341a66287ab8f4ce3de3c98eed6747a639f.tar.gz
qemu-124a1341a66287ab8f4ce3de3c98eed6747a639f.tar.bz2
linux-user: do_setsockopt: make ip_mreq local to the place it is used and inline target_to_host_ip_mreq()
ip_mreq is declared at the beginning of do_setsockopt(), while it is used in only one place. Move its declaration to that very place and replace pointer to alloca()-allocated memory with the structure itself. target_to_host_ip_mreq() is used only once, inline it. This change also properly handles TARGET_EFAULT when the address is wrong. Signed-off-by: Michael Tokarev <mjt@tls.msk.ru> Message-Id: <20240331100737.2724186-3-mjt@tls.msk.ru> [rth: Fix braces, adjust optlen to match host structure size] Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'hw/mem')
0 files changed, 0 insertions, 0 deletions