summaryrefslogtreecommitdiffstats
path: root/src/util/net.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/net.c')
-rw-r--r--src/util/net.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/util/net.c b/src/util/net.c
index afd52ce..dede784 100644
--- a/src/util/net.c
+++ b/src/util/net.c
@@ -11,7 +11,6 @@
#include "posix.h"
#include "str.h"
-#include "http_parser.h"
#include "runtime.h"
#define DEFAULT_PORT_HTTP "80"
@@ -22,7 +21,7 @@
#define GIT_NET_URL_PARSER_INIT { 0 }
typedef struct {
- int hierarchical : 1;
+ unsigned int hierarchical : 1;
const char *scheme;
const char *user;
@@ -657,7 +656,7 @@ static bool has_at(const char *str)
int git_net_url_parse_scp(git_net_url *url, const char *given)
{
const char *default_port = default_port_for_scheme("ssh");
- const char *c, *user, *host, *port, *path = NULL;
+ const char *c, *user, *host, *port = NULL, *path = NULL;
size_t user_len = 0, host_len = 0, port_len = 0;
unsigned short bracket = 0;