diff options
Diffstat (limited to 'examples/init.c')
-rw-r--r-- | examples/init.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/init.c b/examples/init.c index e9841bc93..2f681c5ae 100644 --- a/examples/init.c +++ b/examples/init.c @@ -27,7 +27,7 @@ */ /** Forward declarations of helpers */ -struct opts { +struct init_opts { int no_options; int quiet; int bare; @@ -38,11 +38,11 @@ struct opts { const char *dir; }; static void create_initial_commit(git_repository *repo); -static void parse_opts(struct opts *o, int argc, char *argv[]); +static void parse_opts(struct init_opts *o, int argc, char *argv[]); int lg2_init(git_repository *repo, int argc, char *argv[]) { - struct opts o = { 1, 0, 0, 0, GIT_REPOSITORY_INIT_SHARED_UMASK, 0, 0, 0 }; + struct init_opts o = { 1, 0, 0, 0, GIT_REPOSITORY_INIT_SHARED_UMASK, 0, 0, 0 }; parse_opts(&o, argc, argv); @@ -210,7 +210,7 @@ static uint32_t parse_shared(const char *shared) return 0; } -static void parse_opts(struct opts *o, int argc, char *argv[]) +static void parse_opts(struct init_opts *o, int argc, char *argv[]) { struct args_info args = ARGS_INFO_INIT; const char *sharedarg; |