We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
GIT_CONTAINER_OF
1 parent b5f4044 commit 65203b5Copy full SHA for 65203b5
src/config_file.c
@@ -227,9 +227,9 @@ static void backend_free(git_config_backend *_backend)
227
228
static int config_iterator_new(
229
git_config_iterator **iter,
230
- struct git_config_backend* backend)
+ struct git_config_backend *backend)
231
{
232
- diskfile_header *bh = (diskfile_header *) backend;
+ diskfile_header *bh = GIT_CONTAINER_OF(backend, diskfile_header, parent);
233
git_config_entries *entries;
234
int error;
235
0 commit comments