conf: remove unused CONF_DONE

This flag was never used and is mostly useless, so remove it.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
David Herrmann committed 2013-02-05 12:40:03 +01:00
1 parent 8a00e39854
commit 8a2413d76a
2 files changed
+1 -7

No files matched your search

-5
View File
@@ -265,7 +265,6 @@ int conf_ctx_parse_argv(struct conf_ctx *ctx, int argc, char **argv)
}
o->flags |= CONF_LOCKED;
o->flags |= CONF_DONE;
break;
}
} else if (c < 200000) {
@@ -279,7 +278,6 @@ int conf_ctx_parse_argv(struct conf_ctx *ctx, int argc, char **argv)
}
o->flags |= CONF_LOCKED;
o->flags |= CONF_DONE;
} else {
i = c - 200000;
o = &ctx->opts[i];
@@ -291,7 +289,6 @@ int conf_ctx_parse_argv(struct conf_ctx *ctx, int argc, char **argv)
}
o->flags |= CONF_LOCKED;
o->flags |= CONF_DONE;
}
}
@@ -355,7 +352,6 @@ static int parse_kv_pair(struct conf_option *opts, size_t len,
ret = opt->file(opt, set, value);
if (ret)
return ret;
opt->flags |= CONF_DONE;
return 0;
}
@@ -375,7 +371,6 @@ static int parse_kv_pair(struct conf_option *opts, size_t len,
return ret;
}
opt->flags |= CONF_DONE;
return 0;
}
+1 -2
View File
@@ -151,8 +151,7 @@ int conf_ctx_parse_file(struct conf_ctx *ctx, const char *format, ...);
* this structure.
*/
#define CONF_DONE 0x0001
#define CONF_LOCKED 0x0002
#define CONF_LOCKED 0x0001
struct conf_option {
unsigned int flags;