mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-17 15:12:07 -06:00
linux-user/strace: Clean up local variable shadowing
Fix: linux-user/strace.c: In function ‘print_sockaddr’: linux-user/strace.c:370:17: warning: declaration of ‘i’ shadows a previous local [-Wshadow=compatible-local] 370 | int i; | ^ linux-user/strace.c:361:9: note: shadowed declaration is here 361 | int i; | ^ Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-ID: <20230904161235.84651-20-philmd@linaro.org> Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
fbf58f2141
commit
7f087a3237
1 changed files with 0 additions and 1 deletions
|
@ -367,7 +367,6 @@ print_sockaddr(abi_ulong addr, abi_long addrlen, int last)
|
||||||
switch (sa_family) {
|
switch (sa_family) {
|
||||||
case AF_UNIX: {
|
case AF_UNIX: {
|
||||||
struct target_sockaddr_un *un = (struct target_sockaddr_un *)sa;
|
struct target_sockaddr_un *un = (struct target_sockaddr_un *)sa;
|
||||||
int i;
|
|
||||||
qemu_log("{sun_family=AF_UNIX,sun_path=\"");
|
qemu_log("{sun_family=AF_UNIX,sun_path=\"");
|
||||||
for (i = 0; i < addrlen -
|
for (i = 0; i < addrlen -
|
||||||
offsetof(struct target_sockaddr_un, sun_path) &&
|
offsetof(struct target_sockaddr_un, sun_path) &&
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue