Commit 65203b5a by Patrick Steinhardt

config_file: make use of `GIT_CONTAINER_OF` macro

parent b5f40441
...@@ -227,9 +227,9 @@ static void backend_free(git_config_backend *_backend) ...@@ -227,9 +227,9 @@ static void backend_free(git_config_backend *_backend)
static int config_iterator_new( static int config_iterator_new(
git_config_iterator **iter, 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; git_config_entries *entries;
int error; int error;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment