diff options
author | Vicent Martà <tanoku@gmail.com> | 2012-05-18 01:21:06 +0200 |
---|---|---|
committer | Vicent Martà <tanoku@gmail.com> | 2012-05-18 01:26:26 +0200 |
commit | e172cf082e62aa421703080d0bccb7b8762c8bd4 (patch) | |
tree | c19f7b1be056a9176d4e865f5be5c69a5c2912c6 /src/transport.c | |
parent | 2e2e97858de18abd43f7e59fcc6151510c6d3272 (diff) | |
download | libgit2-e172cf082e62aa421703080d0bccb7b8762c8bd4.tar.gz |
errors: Rename the generic return codes
Diffstat (limited to 'src/transport.c')
-rw-r--r-- | src/transport.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/transport.c b/src/transport.c index bc4248d5b..5b2cd7ea4 100644 --- a/src/transport.c +++ b/src/transport.c @@ -37,7 +37,7 @@ static git_transport_cb transport_find_fn(const char *url) } /* still here? Check to see if the path points to a file on the local file system */ - if ((git_path_exists(url) == GIT_SUCCESS) && git_path_isdir(url)) + if ((git_path_exists(url) == 0) && git_path_isdir(url)) return &git_transport_local; /* It could be a SSH remote path. Check to see if there's a : */ @@ -72,7 +72,7 @@ int git_transport_new(git_transport **out, const char *url) } error = fn(&transport); - if (error < GIT_SUCCESS) + if (error < 0) return error; transport->url = git__strdup(url); @@ -80,7 +80,7 @@ int git_transport_new(git_transport **out, const char *url) *out = transport; - return GIT_SUCCESS; + return 0; } /* from remote.h */ |