Commit f004096f by Edward Thomson

examples: use unsigned int for bitfields

parent 4e7006ab
......@@ -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]
......
......@@ -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)
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment