mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Fix compiler warnings in percent arg. [pjc]
This commit is contained in:
parent
8b1a3214b5
commit
f67c0fd5f7
@ -54,7 +54,7 @@ extern char *optarg;
|
|||||||
*/
|
*/
|
||||||
struct arg the_args[ARG_COUNT + 1] = {
|
struct arg the_args[ARG_COUNT + 1] = {
|
||||||
|
|
||||||
#define arg(a, b, c, d) {b, "", "--" c, d, 0, NULL, 0, 0, INT64_C(0), UINT64_C(0), 0, NULL},
|
#define arg(a, b, c, d) {b, "", "--" c, d, 0, NULL, 0, 0, INT64_C(0), UINT64_C(0), SIGN_NONE, PERCENT_NONE, NULL},
|
||||||
#include "args.h"
|
#include "args.h"
|
||||||
#undef arg
|
#undef arg
|
||||||
|
|
||||||
|
@ -70,7 +70,7 @@ sign_t arg_sign_value(struct cmd_context *cmd, int a, const sign_t def)
|
|||||||
return arg_count(cmd, a) ? cmd->args[a].sign : def;
|
return arg_count(cmd, a) ? cmd->args[a].sign : def;
|
||||||
}
|
}
|
||||||
|
|
||||||
sign_t arg_percent_value(struct cmd_context *cmd, int a, const percent_t def)
|
percent_t arg_percent_value(struct cmd_context *cmd, int a, const percent_t def)
|
||||||
{
|
{
|
||||||
return arg_count(cmd, a) ? cmd->args[a].percent : def;
|
return arg_count(cmd, a) ? cmd->args[a].percent : def;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user