aboutsummaryrefslogtreecommitdiffstats
path: root/commit-graph.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2024-10-16 10:13:18 +0200
committerTaylor Blau <me@ttaylorr.com>2024-10-16 17:00:49 -0400
commit80ebd91b83d50008f1dc9027bc5aee6d375c70f3 (patch)
treef1dafb83098eb8ad5382740054bf1d9e6e1dd311 /commit-graph.c
parentbuiltin/credential-cache: fix missing parameter for stub function (diff)
downloadgit-80ebd91b83d50008f1dc9027bc5aee6d375c70f3.tar.gz
git-80ebd91b83d50008f1dc9027bc5aee6d375c70f3.zip
http: fix build error on FreeBSD
The `result` parameter passed to `http_request_reauth()` may either point to a `struct strbuf` or a `FILE *`, where the `target` parameter tells us which of either it actually is. To accommodate for both types the pointer is a `void *`, which we then pass directly to functions without doing a cast. This is fine on most platforms, but it breaks on FreeBSD because `fileno()` is implemented as a macro that tries to directly access the `FILE *` structure. Fix this issue by storing the `FILE *` in a local variable before we pass it on to other functions. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Taylor Blau <me@ttaylorr.com>
Diffstat (limited to 'commit-graph.c')
0 files changed, 0 insertions, 0 deletions