mirror of
git://git.code.sf.net/p/dhcpd-pools/code
synced 2025-12-17 00:06:59 +00:00
various: fix few warnings
-Wmissing-variable-declarations -Wunreachable-code-break and -Wshadow. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
8731c6a11f
commit
6f6369f517
4 changed files with 13 additions and 11 deletions
|
|
@ -89,7 +89,7 @@ static void prepare_memory(struct conf_t *state)
|
|||
}
|
||||
|
||||
/*! \brief The --skip option argument parser. */
|
||||
static void skip_arg_parse(struct conf_t *state, char *optarg)
|
||||
static void skip_arg_parse(struct conf_t *state, char *arg)
|
||||
{
|
||||
enum {
|
||||
OPT_ARG_OK = 0,
|
||||
|
|
@ -109,8 +109,8 @@ static void skip_arg_parse(struct conf_t *state, char *optarg)
|
|||
};
|
||||
char *value;
|
||||
|
||||
while (*optarg != '\0') {
|
||||
switch (getsubopt(&optarg, tokens, &value)) {
|
||||
while (*arg != '\0') {
|
||||
switch (getsubopt(&arg, tokens, &value)) {
|
||||
case OPT_ARG_OK:
|
||||
state->skip_ok = 1;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue