summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2023-05-12 20:48:30 +0100
committerEdward Thomson <ethomson@edwardthomson.com>2023-05-13 16:42:04 +0100
commit11c89c386c8862f834097cdc5d9ed79634cf00f3 (patch)
tree4bd24e09ecbdf240534ea4dc518639831e327cf7 /tests
parent6e4bbf222d8c4babaff90aef40615546c8bc9cde (diff)
downloadlibgit2-11c89c386c8862f834097cdc5d9ed79634cf00f3.tar.gz
net: move `gitno` buffer to `staticstr`
The `gitno` buffer interface is another layer on top of socket reads. Abstract it a bit into a "static string" that has `git_str` like semantics but without heap allocation which moves the actual reading logic into the socket / stream code, and allows for easier future usage of a static / stack-allocated `git_str`-like interface.
Diffstat (limited to 'tests')
-rw-r--r--tests/util/url/joinpath.c1
-rw-r--r--tests/util/url/redirect.c1
2 files changed, 0 insertions, 2 deletions
diff --git a/tests/util/url/joinpath.c b/tests/util/url/joinpath.c
index 9fc02cde4..6027093e4 100644
--- a/tests/util/url/joinpath.c
+++ b/tests/util/url/joinpath.c
@@ -1,6 +1,5 @@
#include "clar_libgit2.h"
#include "net.h"
-#include "netops.h"
static git_net_url source, target;
diff --git a/tests/util/url/redirect.c b/tests/util/url/redirect.c
index 540177861..a6f99dcdf 100644
--- a/tests/util/url/redirect.c
+++ b/tests/util/url/redirect.c
@@ -1,6 +1,5 @@
#include "clar_libgit2.h"
#include "net.h"
-#include "netops.h"
static git_net_url conndata;