linux-user/mmap.c: clean up local variable shadowing
commitea80003315dec5ae872ee01b22380a461d14b93e
authorLaurent Vivier <laurent@vivier.eu>
Mon, 25 Sep 2023 15:10:26 +0000 (25 17:10 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 6 Oct 2023 11:27:48 +0000 (6 13:27 +0200)
tree41b8c0cbb5f42fe73ccc9b4f247dea723fb7e88d
parentd5308ea64c1a4608f98b80e83a126515045d0fac
linux-user/mmap.c: clean up local variable shadowing

Fix following warnings:

.../linux-user/mmap.c: In function 'target_mremap':
.../linux-user/mmap.c:913:13: warning: declaration of 'prot' shadows a previous local [-Wshadow=compatible-local]
  913 |         int prot = 0;
      |             ^~~~
../../../Projects/qemu/linux-user/mmap.c:871:9: note: shadowed declaration is here
  871 |     int prot;
      |         ^~~~

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Message-ID: <20230925151029.461358-3-laurent@vivier.eu>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
linux-user/mmap.c