aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/coverage/compare_gcov_json.py
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 /scripts/coverage/compare_gcov_json.py
parentlinux-user: do_setsockopt: fix SOL_ALG.ALG_SET_KEY (diff)
downloadqemu-124a1341a66287ab8f4ce3de3c98eed6747a639f.tar.xz
qemu-124a1341a66287ab8f4ce3de3c98eed6747a639f.zip
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 'scripts/coverage/compare_gcov_json.py')
0 files changed, 0 insertions, 0 deletions