Avoid shadowing in fdwalk
authorTom Tromey <tom@tromey.com>
Sun, 22 Apr 2018 16:11:32 +0000 (10:11 -0600)
committerTom Tromey <tom@tromey.com>
Fri, 5 Oct 2018 04:51:48 +0000 (22:51 -0600)
commitb8c888478d517a39d8b0104857d573e47620a3d1
treebe75f35669f6b19fecf4c74e9a39d8e607d48e8b
parentef789dc484a35159ad825c98c4a2502f2097aed7
Avoid shadowing in fdwalk

-Wshadow=local caught this buglet.  fdwalk redeclares "result" in the
inner scope, meaning that this function will always return 0, even on
error.

gdb/ChangeLog
2018-10-04  Tom Tromey  <tom@tromey.com>

* common/filestuff.c (fdwalk): Remove inner declaration of
"result".
gdb/ChangeLog
gdb/common/filestuff.c