summaryrefslogtreecommitdiff
path: root/src/transport.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport.c')
-rw-r--r--src/transport.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/transport.c b/src/transport.c
index bf13fe701..227ee7dee 100644
--- a/src/transport.c
+++ b/src/transport.c
@@ -123,7 +123,7 @@ int git_transport_new(git_transport **out, git_remote *owner, const char *url)
int error;
if ((error = transport_find_fn(&fn, url, &param)) == GIT_ENOTFOUND) {
- giterr_set(GITERR_NET, "unsupported URL protocol");
+ git_error_set(GIT_ERROR_NET, "unsupported URL protocol");
return -1;
} else if (error < 0)
return error;
@@ -131,7 +131,7 @@ int git_transport_new(git_transport **out, git_remote *owner, const char *url)
if ((error = fn(&transport, owner, param)) < 0)
return error;
- GITERR_CHECK_VERSION(transport, GIT_TRANSPORT_VERSION, "git_transport");
+ GIT_ERROR_CHECK_VERSION(transport, GIT_TRANSPORT_VERSION, "git_transport");
*out = transport;
@@ -162,7 +162,7 @@ int git_transport_register(
}
definition = git__calloc(1, sizeof(transport_definition));
- GITERR_CHECK_ALLOC(definition);
+ GIT_ERROR_CHECK_ALLOC(definition);
definition->prefix = git_buf_detach(&prefix);
definition->fn = cb;