cppcheck: fix variable scoping

[src/dhcpd-pools.c:68]: (style) The scope of the variable 'c' can be reduced.
[src/getdata.c:210]: (style) The scope of the variable 'c' can be reduced.
[src/hash.c:102]: (style) The scope of the variable 'l' can be reduced.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola 2013-04-05 23:13:10 +01:00
parent 23aae87356
commit c3e492165c
3 changed files with 5 additions and 3 deletions

View file

@ -65,7 +65,7 @@
* alarming. */
int main(int argc, char **argv)
{
int i, c, sorts = 0;
int i, sorts = 0;
int option_index = 0;
char const *tmp;
struct range_t *tmp_ranges;
@ -124,6 +124,7 @@ int main(int argc, char **argv)
/* Parse command line options */
while (1) {
int c;
c = getopt_long(argc, argv, "c:l:f:o:s:rL:vh",
long_options, &option_index);