1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-27 18:55:19 +03:00

Fix compiler warnings in percent arg. [pjc]

This commit is contained in:
Alasdair Kergon 2006-10-02 16:15:03 +00:00
parent 8b1a3214b5
commit f67c0fd5f7
2 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ extern char *optarg;
*/
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"
#undef arg

View File

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