Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
156e0899
Unverified
Commit
156e0899
authored
Dec 20, 2023
by
Edward Thomson
Committed by
GitHub
Dec 20, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6699 from libgit2/ethomson/bitfield
examples: use unsigned int for bitfields
parents
7ebd8a1d
f004096f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
examples/args.h
+1
-1
examples/checkout.c
+3
-3
examples/merge.c
+1
-1
No files found.
examples/args.h
View file @
156e0899
...
@@ -8,7 +8,7 @@ struct args_info {
...
@@ -8,7 +8,7 @@ struct args_info {
int
argc
;
int
argc
;
char
**
argv
;
char
**
argv
;
int
pos
;
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_INFO_INIT { argc, argv, 0, 0 }
#define ARGS_CURRENT(args) args->argv[args->pos]
#define ARGS_CURRENT(args) args->argv[args->pos]
...
...
examples/checkout.c
View file @
156e0899
...
@@ -35,9 +35,9 @@
...
@@ -35,9 +35,9 @@
*/
*/
typedef
struct
{
typedef
struct
{
int
force
:
1
;
unsigned
int
force
:
1
;
int
progress
:
1
;
unsigned
int
progress
:
1
;
int
perf
:
1
;
unsigned
int
perf
:
1
;
}
checkout_options
;
}
checkout_options
;
static
void
print_usage
(
void
)
static
void
print_usage
(
void
)
...
...
examples/merge.c
View file @
156e0899
...
@@ -30,7 +30,7 @@ struct merge_options {
...
@@ -30,7 +30,7 @@ struct merge_options {
git_annotated_commit
**
annotated
;
git_annotated_commit
**
annotated
;
size_t
annotated_count
;
size_t
annotated_count
;
int
no_commit
:
1
;
unsigned
int
no_commit
:
1
;
};
};
static
void
print_usage
(
void
)
static
void
print_usage
(
void
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment