net: is_default_port is a bool
diff --git a/src/net.c b/src/net.c
index 0705dd3..d566239 100644
--- a/src/net.c
+++ b/src/net.c
@@ -335,7 +335,7 @@ bool git_net_url_valid(git_net_url *url)
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;
diff --git a/src/net.h b/src/net.h
index 7e72db1..0082dd6 100644
--- a/src/net.h
+++ b/src/net.h
@@ -33,8 +33,8 @@ extern int git_net_url_joinpath(
/** Ensures that a URL is minimally valid (contains a host, port and path) */
extern bool git_net_url_valid(git_net_url *url);
-/** Returns nonzero if the URL is on the default port. */
-extern int git_net_url_is_default_port(git_net_url *url);
+/** Returns true if the URL is on the default port. */
+extern bool git_net_url_is_default_port(git_net_url *url);
/* Applies a redirect to the URL with a git-aware service suffix. */
extern int git_net_url_apply_redirect(