diff options
Diffstat (limited to 'src/transports/git.c')
| -rw-r--r-- | src/transports/git.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/transports/git.c b/src/transports/git.c index 82a565fe9..b3f563d95 100644 --- a/src/transports/git.c +++ b/src/transports/git.c @@ -47,7 +47,7 @@ static int gen_proto(git_buf *request, const char *cmd, const char *url) delim = strchr(url, '/'); if (delim == NULL) { - giterr_set(GITERR_NET, "malformed URL"); + git_error_set(GIT_ERROR_NET, "malformed URL"); return -1; } @@ -163,7 +163,7 @@ static int git_proto_stream_alloc( return -1; s = git__calloc(1, sizeof(git_proto_stream)); - GITERR_CHECK_ALLOC(s); + GIT_ERROR_CHECK_ALLOC(s); s->parent.subtransport = &t->parent; s->parent.read = git_proto_stream_read; @@ -181,7 +181,7 @@ static int git_proto_stream_alloc( if ((git_socket_stream_new(&s->io, host, port)) < 0) return -1; - GITERR_CHECK_VERSION(s->io, GIT_STREAM_VERSION, "git_stream"); + GIT_ERROR_CHECK_VERSION(s->io, GIT_STREAM_VERSION, "git_stream"); *stream = &s->parent; return 0; @@ -242,7 +242,7 @@ static int _git_uploadpack( return 0; } - giterr_set(GITERR_NET, "must call UPLOADPACK_LS before UPLOADPACK"); + git_error_set(GIT_ERROR_NET, "must call UPLOADPACK_LS before UPLOADPACK"); return -1; } @@ -298,7 +298,7 @@ static int _git_receivepack( return 0; } - giterr_set(GITERR_NET, "must call RECEIVEPACK_LS before RECEIVEPACK"); + git_error_set(GIT_ERROR_NET, "must call RECEIVEPACK_LS before RECEIVEPACK"); return -1; } @@ -358,7 +358,7 @@ int git_smart_subtransport_git(git_smart_subtransport **out, git_transport *owne return -1; t = git__calloc(1, sizeof(git_subtransport)); - GITERR_CHECK_ALLOC(t); + GIT_ERROR_CHECK_ALLOC(t); t->owner = owner; t->parent.action = _git_action; |
