diff options
Diffstat (limited to 'src/netops.c')
| -rw-r--r-- | src/netops.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/netops.c b/src/netops.c index 272d0ccd8..ecbc2aebe 100644 --- a/src/netops.c +++ b/src/netops.c @@ -153,7 +153,7 @@ int gitno_connection_data_from_url( default_port = default_port_http; if (data->use_ssl) { - giterr_set(GITERR_NET, "redirect from HTTPS to HTTP is not allowed"); + git_error_set(GIT_ERROR_NET, "redirect from HTTPS to HTTP is not allowed"); goto cleanup; } } else if (!git__prefixcmp(url, prefix_https)) { @@ -164,7 +164,7 @@ int gitno_connection_data_from_url( default_port = gitno__default_port(data); if (!default_port) { - giterr_set(GITERR_NET, "unrecognized URL prefix"); + git_error_set(GIT_ERROR_NET, "unrecognized URL prefix"); goto cleanup; } @@ -196,7 +196,7 @@ int gitno_connection_data_from_url( /* Check for errors in the resulting data */ if (original_host && url[0] != '/' && strcmp(original_host, data->host)) { - giterr_set(GITERR_NET, "cross host redirect not allowed"); + git_error_set(GIT_ERROR_NET, "cross host redirect not allowed"); error = -1; } } @@ -234,7 +234,7 @@ int gitno_extract_url_parts( int error = 0; if (http_parser_parse_url(url, strlen(url), false, &u)) { - giterr_set(GITERR_NET, "malformed URL '%s'", url); + git_error_set(GIT_ERROR_NET, "malformed URL '%s'", url); error = GIT_EINVALIDSPEC; goto done; } @@ -263,7 +263,7 @@ int gitno_extract_url_parts( size_t url_path_len = u.field_data[UF_PATH].len; git_buf_decode_percent(&path, url_path, url_path_len); } else if (path_out) { - giterr_set(GITERR_NET, "invalid url, missing path"); + git_error_set(GIT_ERROR_NET, "invalid url, missing path"); error = GIT_EINVALIDSPEC; goto done; } |
