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:
Sami Kerola 2019-02-09 17:41:39 +00:00
parent 8731c6a11f
commit 6f6369f517
No known key found for this signature in database
GPG key ID: 0D46FEF7E61DBB46
4 changed files with 13 additions and 11 deletions

View file

@ -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;