Skip to content

Commit e09f0c1

Browse files
committed
deprecation: don't use deprecated stream cb
Avoid the deprecated `git_stream_cb` typedef since we want to compile the library without deprecated functions or types. Instead, we can unroll the alias to its actual type.
1 parent 09e2ea2 commit e09f0c1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/streams/registry.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ int git_stream_register(git_stream_t type, git_stream_registration *registration
100100
return 0;
101101
}
102102

103-
int git_stream_register_tls(git_stream_cb ctor)
103+
104+
int git_stream_register_tls(
105+
int GIT_CALLBACK(ctor)(git_stream **out, const char *host, const char *port))
104106
{
105107
git_stream_registration registration = {0};
106108

0 commit comments

Comments
 (0)