forked from ariadne/pkgconf
pkg_getopt_long: use uint64_t for options bitfield
parent
1cc0ae62a9
commit
57924dcee2
|
@ -54,7 +54,7 @@ struct pkg_option {
|
||||||
*/
|
*/
|
||||||
int has_arg;
|
int has_arg;
|
||||||
/* if not NULL, set *flag to val when option found */
|
/* if not NULL, set *flag to val when option found */
|
||||||
int *flag;
|
uint64_t *flag;
|
||||||
/* if flag not NULL, value to set *flag to; else return value */
|
/* if flag not NULL, value to set *flag to; else return value */
|
||||||
int val;
|
int val;
|
||||||
};
|
};
|
||||||
|
|
2
main.c
2
main.c
|
@ -49,7 +49,7 @@
|
||||||
|
|
||||||
static unsigned int global_traverse_flags = PKGF_NONE;
|
static unsigned int global_traverse_flags = PKGF_NONE;
|
||||||
|
|
||||||
static int want_flags;
|
static uint64_t want_flags;
|
||||||
static int maximum_traverse_depth = 2000;
|
static int maximum_traverse_depth = 2000;
|
||||||
|
|
||||||
static char *want_variable = NULL;
|
static char *want_variable = NULL;
|
||||||
|
|
Loading…
Reference in New Issue