summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2019-01-23 10:21:42 +0000
committerEdward Thomson <ethomson@edwardthomson.com>2019-01-25 09:06:50 +0000
commite09f0c101796abcbcb988d3104a504d675ebbbf2 (patch)
treecf0836e291f3c9a9ae4e6349fa23523ee536c05a
parent09e2ea2fe116cd1f7b8ada36d62f9907cc5c0d51 (diff)
downloadlibgit2-e09f0c101796abcbcb988d3104a504d675ebbbf2.tar.gz
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.
-rw-r--r--src/streams/registry.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/streams/registry.c b/src/streams/registry.c
index b6cf489a2..330032005 100644
--- a/src/streams/registry.c
+++ b/src/streams/registry.c
@@ -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};