acassen/keepalived — pull request #4 by rohara (2012-08-13 21:18:24+00:00)
Title: Fix shadow variables.

There are a few places in the code where variables get a shadow
declaration. These can be detected by using the -Wshadow flag with
gcc. The following four patches fix all shadow variables and add a bit
of code cleanup.

The global variables that were being shadowed were data, vrrp_data,
and check_data. First, the global 'data' variable was renamed to
'global_data', which is consistent with the other two variables.
Any function that took global_data, vrrp_data or check_data as
parameter now uses 'data' as a variable name. This also fixes a minor
issue where some functions were being using the global variable
instead of the variable passed as a parameter.

There was also one instance of a variable being redeclared within the
vrrp_init_state function.