Commit Diff


commit - c10270f60d5b5c805167e48e6a4fe265bdbecc69
commit + 2e60146439253c7e4c5fba12e697c2abd29576b8
blob - f9e0d6b0ee0b8e3d702b742b51baa3819d382ff2
blob + 10c22ece9a96f897b3b926737aa5bf217b1df8f2
--- regress/fetch/Makefile
+++ regress/fetch/Makefile
@@ -4,7 +4,7 @@ PROG = fetch_test
 SRCS = error.c privsep.c reference.c sha1.c object.c object_parse.c path.c \
 	opentemp.c repository.c lockfile.c object_cache.c pack.c inflate.c \
 	deflate.c delta.c delta_cache.c object_idset.c object_create.c \
-	fetch.c gotconfig.c fetch_test.c
+	fetch.c gotconfig.c dial.c fetch_test.c
 
 CPPFLAGS = -I${.CURDIR}/../../include -I${.CURDIR}/../../lib
 LDADD = -lutil -lz
blob - 9b4589cd0ded9d79fab4b5af03f5139fe8961b62
blob + 66452392324de31782617407a330a0cf27630880
--- regress/fetch/fetch_test.c
+++ regress/fetch/fetch_test.c
@@ -31,6 +31,7 @@
 #include "got_object.h"
 #include "got_path.h"
 #include "got_fetch.h"
+#include "got_dial.h"
 
 #include "got_lib_object_idset.h"
 #include "got_lib_sha1.h"
@@ -138,7 +139,7 @@ fetch_parse_uri(void)
 		const char *expected_repo_name = test_data[i].repo_name;
 		char *proto, *host, *port, *server_path, *repo_name;
 
-		err = got_fetch_parse_uri(&proto, &host, &port, &server_path,
+		err = got_dial_parse_uri(&proto, &host, &port, &server_path,
 		    &repo_name, uri);
 		if (err && err->code != test_data[i].errcode) {
 			test_printf("%d: error code %d; expected %d\n",