public API is now independent of sha1.h and zlib.h
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
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;