Commit 953dee20 by Edward Thomson

net: is_default_port is a bool

parent b7ffc63b
...@@ -335,7 +335,7 @@ bool git_net_url_valid(git_net_url *url) ...@@ -335,7 +335,7 @@ bool git_net_url_valid(git_net_url *url)
return (url->host && url->port && url->path); return (url->host && url->port && url->path);
} }
int git_net_url_is_default_port(git_net_url *url) bool git_net_url_is_default_port(git_net_url *url)
{ {
const char *default_port; const char *default_port;
......
...@@ -33,8 +33,8 @@ extern int git_net_url_joinpath( ...@@ -33,8 +33,8 @@ extern int git_net_url_joinpath(
/** Ensures that a URL is minimally valid (contains a host, port and path) */ /** Ensures that a URL is minimally valid (contains a host, port and path) */
extern bool git_net_url_valid(git_net_url *url); extern bool git_net_url_valid(git_net_url *url);
/** Returns nonzero if the URL is on the default port. */ /** Returns true if the URL is on the default port. */
extern int git_net_url_is_default_port(git_net_url *url); extern bool git_net_url_is_default_port(git_net_url *url);
/* Applies a redirect to the URL with a git-aware service suffix. */ /* Applies a redirect to the URL with a git-aware service suffix. */
extern int git_net_url_apply_redirect( extern int git_net_url_apply_redirect(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment