Commit 80f0eb00bf4c3fc2dcfafeb2820e772a1ad179c3

Stefan Sperling 2018-02-12T22:52:27

public API is now independent of sha1.h and zlib.h

diff --git a/regress/delta/delta_test.c b/regress/delta/delta_test.c
index eb671e9..19f447b 100644
--- a/regress/delta/delta_test.c
+++ b/regress/delta/delta_test.c
@@ -19,7 +19,6 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <zlib.h>
 
 #include "got_error.h"
 
diff --git a/regress/packfiles/packfile_test.c b/regress/packfiles/packfile_test.c
index 6b84329..dc3d02d 100644
--- a/regress/packfiles/packfile_test.c
+++ b/regress/packfiles/packfile_test.c
@@ -20,7 +20,6 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <sha1.h>
-#include <zlib.h>
 
 #include "got_error.h"
 #include "got_object.h"
diff --git a/regress/repository/repository_test.c b/regress/repository/repository_test.c
index 3d4d249..20ffaff 100644
--- a/regress/repository/repository_test.c
+++ b/regress/repository/repository_test.c
@@ -21,8 +21,6 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
-#include <sha1.h>
-#include <zlib.h>
 #include <unistd.h>
 
 #include "got_error.h"
@@ -224,7 +222,6 @@ repo_read_tree(const char *repo_path)
 	const struct got_error *err;
 	struct got_repository *repo;
 	struct got_object *obj;
-	char hex[SHA1_DIGEST_STRING_LENGTH];
 	int i;
 	size_t len;
 
@@ -252,7 +249,6 @@ repo_read_blob(const char *repo_path)
 	struct got_repository *repo;
 	struct got_object *obj;
 	struct got_blob_object *blob;
-	char hex[SHA1_DIGEST_STRING_LENGTH];
 	int i;
 	size_t len;
 
@@ -297,7 +293,6 @@ repo_diff_blob(const char *repo_path)
 	struct got_object *obj2;
 	struct got_blob_object *blob1;
 	struct got_blob_object *blob2;
-	char hex[SHA1_DIGEST_STRING_LENGTH];
 	int i;
 	size_t len;
 	FILE *outfile;
@@ -354,7 +349,6 @@ repo_diff_tree(const char *repo_path)
 	struct got_object *obj2;
 	struct got_tree_object *tree1;
 	struct got_tree_object *tree2;
-	char hex[SHA1_DIGEST_STRING_LENGTH];
 	int i;
 	size_t len;
 	FILE *outfile;