summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2019-04-16 13:21:16 +0200
committerPatrick Steinhardt <ps@pks.im>2019-04-16 13:21:16 +0200
commit65203b5af54e672b19db7fc3473db29513fabc7a (patch)
tree49d38a9724c7f5aefd669388c17d500ffeb41c5d /src
parentb5f40441f51b091cf34e33153271fbaee133ddc2 (diff)
downloadlibgit2-65203b5af54e672b19db7fc3473db29513fabc7a.tar.gz
config_file: make use of `GIT_CONTAINER_OF` macro
Diffstat (limited to 'src')
-rw-r--r--src/config_file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config_file.c b/src/config_file.c
index 26c9e5ed2..a305021c4 100644
--- a/src/config_file.c
+++ b/src/config_file.c
@@ -227,9 +227,9 @@ static void backend_free(git_config_backend *_backend)
static int config_iterator_new(
git_config_iterator **iter,
- struct git_config_backend* backend)
+ struct git_config_backend *backend)
{
- diskfile_header *bh = (diskfile_header *) backend;
+ diskfile_header *bh = GIT_CONTAINER_OF(backend, diskfile_header, parent);
git_config_entries *entries;
int error;