Skip to content

Commit

Permalink
ostree-repo-checkout: Drop unsused arg in push/pop_path_element
Browse files Browse the repository at this point in the history
We want to use this with other options later, so drop the (unused)
OstreeRepoCheckoutAtOptions argument.
  • Loading branch information
alexlarsson committed Jun 9, 2022
1 parent b4333c8 commit 0237c06
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/libostree/ostree-repo-checkout.c
Original file line number Diff line number Diff line change
Expand Up @@ -852,8 +852,7 @@ push_path_element_once (GString *buf,
}

static inline void
push_path_element (OstreeRepoCheckoutAtOptions *options,
CheckoutState *state,
push_path_element (CheckoutState *state,
const char *name,
gboolean is_dir)
{
Expand All @@ -864,8 +863,7 @@ push_path_element (OstreeRepoCheckoutAtOptions *options,
}

static inline void
pop_path_element (OstreeRepoCheckoutAtOptions *options,
CheckoutState *state,
pop_path_element (CheckoutState *state,
const char *name,
gboolean is_dir)
{
Expand Down Expand Up @@ -1034,7 +1032,7 @@ checkout_tree_at_recurse (OstreeRepo *self,
g_autoptr(GVariant) contents_csum_v = NULL;
while (g_variant_iter_loop (&viter, "(&s@ay)", &fname, &contents_csum_v))
{
push_path_element (options, state, fname, FALSE);
push_path_element (state, fname, FALSE);

char tmp_checksum[OSTREE_SHA256_STRING_LEN+1];
_ostree_checksum_inplace_from_bytes_v (contents_csum_v, tmp_checksum);
Expand All @@ -1045,7 +1043,7 @@ checkout_tree_at_recurse (OstreeRepo *self,
cancellable, error))
return FALSE;

pop_path_element (options, state, fname, FALSE);
pop_path_element (state, fname, FALSE);
}
contents_csum_v = NULL; /* iter_loop freed it */
}
Expand All @@ -1069,7 +1067,7 @@ checkout_tree_at_recurse (OstreeRepo *self,
if (!ot_util_filename_validate (dname, error))
return FALSE;

push_path_element (options, state, dname, TRUE);
push_path_element (state, dname, TRUE);

char subdirtree_checksum[OSTREE_SHA256_STRING_LEN+1];
_ostree_checksum_inplace_from_bytes_v (subdirtree_csum_v, subdirtree_checksum);
Expand All @@ -1081,7 +1079,7 @@ checkout_tree_at_recurse (OstreeRepo *self,
cancellable, error))
return FALSE;

pop_path_element (options, state, dname, TRUE);
pop_path_element (state, dname, TRUE);
}
}

Expand Down

0 comments on commit 0237c06

Please sign in to comment.