Rename variable with confusing name
authorSimon Marchi <simon.marchi@ericsson.com>
Fri, 1 Aug 2014 22:09:06 +0000 (18:09 -0400)
committerSimon Marchi <simon.marchi@ericsson.com>
Wed, 6 Aug 2014 19:32:57 +0000 (15:32 -0400)
commitb6d7a4bf2932e5ae173dd7fb0213c3b004da8462
tree53ff0805210f82649445803d6773f1710cda4ba7
parentd022bddd4fd93428a7fa3cc7ad404c912ed20dbf
Rename variable with confusing name

I saw this gem of not so legible code in solib-svr4.c (scan_dyntag):

if (dyn_tag == dyntag)

and thought it deserved a small rename.

This just renames variables to be a bit more clear for those who read the
code. I also constified the parameter because, why not. The same was
done in scan_dyntag_auxv as well.

Tested only by rebuilding, since the change was done mechanically.

gdb/Changelog:

2014-08-01  Simon Marchi  <simon.marchi@ericsson.com>

* solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
(scan_dyntag_auxv): Same.
gdb/ChangeLog
gdb/solib-svr4.c