Skip to content

Commit 953dee2

Browse files
committed
net: is_default_port is a bool
1 parent b7ffc63 commit 953dee2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/net.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ bool git_net_url_valid(git_net_url *url)
335335
return (url->host && url->port && url->path);
336336
}
337337

338-
int git_net_url_is_default_port(git_net_url *url)
338+
bool git_net_url_is_default_port(git_net_url *url)
339339
{
340340
const char *default_port;
341341

src/net.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ extern int git_net_url_joinpath(
3333
/** Ensures that a URL is minimally valid (contains a host, port and path) */
3434
extern bool git_net_url_valid(git_net_url *url);
3535

36-
/** Returns nonzero if the URL is on the default port. */
37-
extern int git_net_url_is_default_port(git_net_url *url);
36+
/** Returns true if the URL is on the default port. */
37+
extern bool git_net_url_is_default_port(git_net_url *url);
3838

3939
/* Applies a redirect to the URL with a git-aware service suffix. */
4040
extern int git_net_url_apply_redirect(

0 commit comments

Comments
 (0)