Re: [PATCH 01/17] commit-graph: anonymize data in chunk_write_fn
- From
Chris Torek <chris.torek@gmail.com>
- Date
- Jan 27, 2021, 01:53 UTC
- Message-ID
- <CAPx1GvfQ4K+2mt0BC-1o7e0omHAvC6XhmpOuGa41v-b850w14w@mail.gmail.com>
- In-Reply-To
- <09b32829e4ff2384cb35afaf1a34385e25bac8d8.1611676886.git.gitgitgadget@gmail.com>
Note: this is purely style, and minor, but I'll ask...
On Tue, Jan 26, 2021 at 8:08 AM Derrick Stolee via GitGitGadget <gitgitgadget@gmail.com> wrote:
Show 6 quoted lines
> static int write_graph_chunk_fanout(struct hashfile *f,
> - struct write_commit_graph_context *ctx)
> + void *data)
> {
> + struct write_commit_graph_context *ctx =
> + (struct write_commit_graph_context *)data;Why bother with the cast on the last line here? In C, conversion from `void *` to `struct whatever *` is fine.
(the change itself looks fine, btw)
Chris