Commit e09f0c10 by Edward Thomson

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.
parent 09e2ea2f
......@@ -100,7 +100,9 @@ int git_stream_register(git_stream_t type, git_stream_registration *registration
return 0;
}
int git_stream_register_tls(git_stream_cb ctor)
int git_stream_register_tls(
int GIT_CALLBACK(ctor)(git_stream **out, const char *host, const char *port))
{
git_stream_registration registration = {0};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment