Skip to content

Commit 65203b5

Browse files
committed
config_file: make use of GIT_CONTAINER_OF macro
1 parent b5f4044 commit 65203b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/config_file.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,9 @@ static void backend_free(git_config_backend *_backend)
227227

228228
static int config_iterator_new(
229229
git_config_iterator **iter,
230-
struct git_config_backend* backend)
230+
struct git_config_backend *backend)
231231
{
232-
diskfile_header *bh = (diskfile_header *) backend;
232+
diskfile_header *bh = GIT_CONTAINER_OF(backend, diskfile_header, parent);
233233
git_config_entries *entries;
234234
int error;
235235

0 commit comments

Comments
 (0)