diff options
| author | Patrick Steinhardt <ps@pks.im> | 2025-01-31 13:55:29 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-01-31 10:06:10 -0800 |
| commit | 7346e340f147131ca32089f61f7d0f502f80d19d (patch) | |
| tree | c85e7270af3faa45fcc34afddac0e85a65731820 /trace2/tr2_sid.c | |
| parent | hash: convert hashing context to a structure (diff) | |
| download | git-7346e340f147131ca32089f61f7d0f502f80d19d.tar.gz git-7346e340f147131ca32089f61f7d0f502f80d19d.zip | |
hash: stop typedeffing the hash context
We generally avoid using `typedef` in the Git codebase. One exception
though is the `git_hash_ctx`, likely because it used to be a union
rather than a struct until the preceding commit refactored it. But now
that it is a normal `struct` there isn't really a need for a typedef
anymore.
Drop the typedef and adapt all callers accordingly.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'trace2/tr2_sid.c')
| -rw-r--r-- | trace2/tr2_sid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/trace2/tr2_sid.c b/trace2/tr2_sid.c index 09c4ef0d17..c42696ef52 100644 --- a/trace2/tr2_sid.c +++ b/trace2/tr2_sid.c @@ -32,7 +32,7 @@ static void tr2_sid_append_my_sid_component(void) { const struct git_hash_algo *algo = &hash_algos[GIT_HASH_SHA1]; struct tr2_tbuf tb_now; - git_hash_ctx ctx; + struct git_hash_ctx ctx; pid_t pid = getpid(); unsigned char hash[GIT_MAX_RAWSZ + 1]; char hex[GIT_MAX_HEXSZ + 1]; |
