mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-17 00:06:59 +00:00
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:
parent
23aae87356
commit
c3e492165c
3 changed files with 5 additions and 3 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue