vendor/libgit2/src/transport.c in rugged-0.27.10 vs vendor/libgit2/src/transport.c in rugged-0.27.10.1

- old
+ new

@@ -121,19 +121,19 @@ git_transport *transport; void *param; int error; if ((error = transport_find_fn(&fn, url, &param)) == GIT_ENOTFOUND) { - git_error_set(GIT_ERROR_NET, "unsupported URL protocol"); + giterr_set(GITERR_NET, "unsupported URL protocol"); return -1; } else if (error < 0) return error; if ((error = fn(&transport, owner, param)) < 0) return error; - GIT_ERROR_CHECK_VERSION(transport, GIT_TRANSPORT_VERSION, "git_transport"); + GITERR_CHECK_VERSION(transport, GIT_TRANSPORT_VERSION, "git_transport"); *out = transport; return 0; } @@ -160,11 +160,11 @@ goto on_error; } } definition = git__calloc(1, sizeof(transport_definition)); - GIT_ERROR_CHECK_ALLOC(definition); + GITERR_CHECK_ALLOC(definition); definition->prefix = git_buf_detach(&prefix); definition->fn = cb; definition->param = param; @@ -172,11 +172,11 @@ goto on_error; return 0; on_error: - git_buf_dispose(&prefix); + git_buf_free(&prefix); git__free(definition); return error; } int git_transport_unregister(const char *scheme) @@ -208,10 +208,10 @@ } error = GIT_ENOTFOUND; done: - git_buf_dispose(&prefix); + git_buf_free(&prefix); return error; } int git_transport_init(git_transport *opts, unsigned int version) {