diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2020-12-17 20:51:37 +0000 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2020-12-23 12:00:34 +0000 |
commit | 953dee20c6ccb5cb9b5e89ae571bfd356fe21a0e (patch) | |
tree | 99f09e17fe64ddf7461760e6f68015fbee5cb4a5 | |
parent | b7ffc63b1b0aee36d54733baec5412942e71f00c (diff) | |
download | libgit2-953dee20c6ccb5cb9b5e89ae571bfd356fe21a0e.tar.gz |
net: is_default_port is a bool
-rw-r--r-- | src/net.c | 2 | ||||
-rw-r--r-- | src/net.h | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -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; @@ -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( |