summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2020-12-17 20:51:37 +0000
committerEdward Thomson <ethomson@edwardthomson.com>2020-12-23 12:00:34 +0000
commit953dee20c6ccb5cb9b5e89ae571bfd356fe21a0e (patch)
tree99f09e17fe64ddf7461760e6f68015fbee5cb4a5
parentb7ffc63b1b0aee36d54733baec5412942e71f00c (diff)
downloadlibgit2-953dee20c6ccb5cb9b5e89ae571bfd356fe21a0e.tar.gz
net: is_default_port is a bool
-rw-r--r--src/net.c2
-rw-r--r--src/net.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/net.c b/src/net.c
index 0705dd390..d5662393a 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 7e72db13f..0082dd6d7 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(