summaryrefslogtreecommitdiff
path: root/examples/blame.c
diff options
context:
space:
mode:
authorEtienne Samson <samson.etienne@gmail.com>2019-11-06 11:08:49 +0100
committerEtienne Samson <samson.etienne@gmail.com>2019-11-06 11:17:56 +0100
commit313908f9f5322f623ef1924f859726b39cb9740c (patch)
tree599dabe529ddda13e447366a7552ba74b0941d42 /examples/blame.c
parent4a4ad2bc8374db6e82464a6f066840430b6657ec (diff)
downloadlibgit2-313908f9f5322f623ef1924f859726b39cb9740c.tar.gz
examples: normalize decls and usage of options structs
Diffstat (limited to 'examples/blame.c')
-rw-r--r--examples/blame.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/blame.c b/examples/blame.c
index 76f5ed2bd..1b78d1cea 100644
--- a/examples/blame.c
+++ b/examples/blame.c
@@ -19,7 +19,7 @@
* simulate the output of `git blame` and a few of its command line arguments.
*/
-struct opts {
+struct blame_opts {
char *path;
char *commitspec;
int C;
@@ -28,14 +28,14 @@ struct opts {
int end_line;
int F;
};
-static void parse_opts(struct opts *o, int argc, char *argv[]);
+static void parse_opts(struct blame_opts *o, int argc, char *argv[]);
int lg2_blame(git_repository *repo, int argc, char *argv[])
{
int line, break_on_null_hunk;
git_off_t i, rawsize;
char spec[1024] = {0};
- struct opts o = {0};
+ struct blame_opts o = {0};
const char *rawdata;
git_revspec revspec = {0};
git_blame_options blameopts = GIT_BLAME_OPTIONS_INIT;
@@ -143,7 +143,7 @@ static void usage(const char *msg, const char *arg)
}
/** Parse the arguments. */
-static void parse_opts(struct opts *o, int argc, char *argv[])
+static void parse_opts(struct blame_opts *o, int argc, char *argv[])
{
int i;
char *bare_args[3] = {0};