cmdutils: declare only one pointer type in OptionDef

This will be useful in the following commit.
This commit is contained in:
Anton Khirnov
2011-08-28 14:27:27 +02:00
parent cac651c834
commit 7efe05ab29
2 changed files with 8 additions and 9 deletions

View File

@ -125,11 +125,8 @@ typedef struct {
#define OPT_EXIT 0x0800
#define OPT_DATA 0x1000
union {
int *int_arg;
char **str_arg;
float *float_arg;
void *dst_ptr;
int (*func_arg)(const char *, const char *);
int64_t *int64_arg;
} u;
const char *help;
const char *argname;