diff options
author | Michael Schubert <schu@schu.io> | 2012-10-24 15:46:15 +0200 |
---|---|---|
committer | Michael Schubert <schu@schu.io> | 2012-10-24 15:46:15 +0200 |
commit | ab2af775ec467ebb328a7374653f247920f258f3 (patch) | |
tree | dfcb09fadc67bc28a99bffcb8b751d426024974c /tests-clar/config/multivar.c | |
parent | 90fefe87d87b08010a1ea10ae496a4b0ee630f5e (diff) | |
parent | 6f6b0c013c6eff2aca2a7ada1027044f2e20f578 (diff) | |
download | libgit2-features/push_old.tar.gz |
Merge branch 'development' into gsoc-pushfeatures/push_old
Diffstat (limited to 'tests-clar/config/multivar.c')
-rw-r--r-- | tests-clar/config/multivar.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/tests-clar/config/multivar.c b/tests-clar/config/multivar.c index 3b40cd09a..26537e20a 100644 --- a/tests-clar/config/multivar.c +++ b/tests-clar/config/multivar.c @@ -12,13 +12,11 @@ void test_config_multivar__cleanup(void) cl_fixture_cleanup("config"); } -static int mv_read_cb(const char *name, const char *value, void *data) +static int mv_read_cb(const git_config_entry *entry, void *data) { int *n = (int *) data; - GIT_UNUSED(value); - - if (!strcmp(name, _name)) + if (!strcmp(entry->name, _name)) (*n)++; return 0; @@ -37,11 +35,11 @@ void test_config_multivar__foreach(void) git_config_free(cfg); } -static int cb(const char *val, void *data) +static int cb(const git_config_entry *entry, void *data) { int *n = (int *) data; - GIT_UNUSED(val); + GIT_UNUSED(entry); (*n)++; |