examples: use unsigned int for bitfields

This commit is contained in:
Edward Thomson
2023-12-20 11:20:45 +00:00
parent 4e7006ab4f
commit f004096fff
3 changed files with 5 additions and 5 deletions

View File

@@ -8,7 +8,7 @@ struct args_info {
int argc;
char **argv;
int pos;
int opts_done : 1; /**< Did we see a -- separator */
unsigned int opts_done : 1; /**< Did we see a -- separator */
};
#define ARGS_INFO_INIT { argc, argv, 0, 0 }
#define ARGS_CURRENT(args) args->argv[args->pos]

View File

@@ -35,9 +35,9 @@
*/
typedef struct {
int force : 1;
int progress : 1;
int perf : 1;
unsigned int force : 1;
unsigned int progress : 1;
unsigned int perf : 1;
} checkout_options;
static void print_usage(void)

View File

@@ -30,7 +30,7 @@ struct merge_options {
git_annotated_commit **annotated;
size_t annotated_count;
int no_commit : 1;
unsigned int no_commit : 1;
};
static void print_usage(void)