Commit 5677e194b16f497f2450d3468248f557068e7f05

Stefan Sperling 2018-03-11T13:20:25

rename got_zb_priv.h to got_zbuf_priv.h

diff --git a/lib/delta.c b/lib/delta.c
index 7ad143b..d6d844f 100644
--- a/lib/delta.c
+++ b/lib/delta.c
@@ -28,7 +28,7 @@
 
 #include "got_delta_priv.h"
 #include "got_path_priv.h"
-#include "got_zb_priv.h"
+#include "got_zbuf_priv.h"
 
 #ifndef MIN
 #define	MIN(_a,_b) ((_a) < (_b) ? (_a) : (_b))
diff --git a/lib/got_zb_priv.h b/lib/got_zb_priv.h
deleted file mode 100644
index 083cd85..0000000
--- a/lib/got_zb_priv.h
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * Copyright (c) 2018 Stefan Sperling <stsp@openbsd.org>
- *
- * Permission to use, copy, modify, and distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
- */
-
-struct got_zstream_buf {
-	z_stream z;
-	char *inbuf;
-	size_t inlen;
-	char *outbuf;
-	size_t outlen;
-	int flags;
-#define GOT_ZSTREAM_F_HAVE_MORE 0x01
-};
-
-const struct got_error *got_inflate_init(struct got_zstream_buf *, size_t);
-const struct got_error *got_inflate_read(struct got_zstream_buf *, FILE *,
-    size_t *);
-void got_inflate_end(struct got_zstream_buf *);
-const struct got_error *got_inflate_to_mem(uint8_t **, size_t *, FILE *);
-const struct got_error *got_inflate_to_file(size_t *, FILE *, FILE *);
diff --git a/lib/got_zbuf_priv.h b/lib/got_zbuf_priv.h
new file mode 100644
index 0000000..083cd85
--- /dev/null
+++ b/lib/got_zbuf_priv.h
@@ -0,0 +1,32 @@
+/*
+ * Copyright (c) 2018 Stefan Sperling <stsp@openbsd.org>
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+struct got_zstream_buf {
+	z_stream z;
+	char *inbuf;
+	size_t inlen;
+	char *outbuf;
+	size_t outlen;
+	int flags;
+#define GOT_ZSTREAM_F_HAVE_MORE 0x01
+};
+
+const struct got_error *got_inflate_init(struct got_zstream_buf *, size_t);
+const struct got_error *got_inflate_read(struct got_zstream_buf *, FILE *,
+    size_t *);
+void got_inflate_end(struct got_zstream_buf *);
+const struct got_error *got_inflate_to_mem(uint8_t **, size_t *, FILE *);
+const struct got_error *got_inflate_to_file(size_t *, FILE *, FILE *);
diff --git a/lib/object.c b/lib/object.c
index 840d8ed..7ad3fb7 100644
--- a/lib/object.c
+++ b/lib/object.c
@@ -33,7 +33,7 @@
 #include "got_sha1_priv.h"
 #include "got_delta_priv.h"
 #include "got_pack_priv.h"
-#include "got_zb_priv.h"
+#include "got_zbuf_priv.h"
 #include "got_object_priv.h"
 
 #ifndef MIN
diff --git a/lib/pack.c b/lib/pack.c
index bc309b7..a818486 100644
--- a/lib/pack.c
+++ b/lib/pack.c
@@ -37,7 +37,7 @@
 #include "got_pack_priv.h"
 #include "got_path_priv.h"
 #include "got_delta_priv.h"
-#include "got_zb_priv.h"
+#include "got_zbuf_priv.h"
 #include "got_object_priv.h"
 #include "got_repository_priv.h"
 
diff --git a/lib/refs.c b/lib/refs.c
index cf43009..7ea9289 100644
--- a/lib/refs.c
+++ b/lib/refs.c
@@ -32,7 +32,7 @@
 #include "got_sha1_priv.h"
 #include "got_path_priv.h"
 #include "got_delta_priv.h"
-#include "got_zb_priv.h"
+#include "got_zbuf_priv.h"
 #include "got_object_priv.h"
 
 /* A symbolic reference. */
diff --git a/lib/repository.c b/lib/repository.c
index ac7b356..1a6fd7b 100644
--- a/lib/repository.c
+++ b/lib/repository.c
@@ -29,7 +29,7 @@
 
 #include "got_path_priv.h"
 #include "got_repository_priv.h"
-#include "got_zb_priv.h"
+#include "got_zbuf_priv.h"
 #include "got_delta_priv.h"
 #include "got_object_priv.h"
 #include "got_pack_priv.h"
diff --git a/lib/zbuf.c b/lib/zbuf.c
index 0b27e5b..a7a5db2 100644
--- a/lib/zbuf.c
+++ b/lib/zbuf.c
@@ -26,7 +26,7 @@
 #include "got_object.h"
 
 #include "got_path_priv.h"
-#include "got_zb_priv.h"
+#include "got_zbuf_priv.h"
 
 const struct got_error *
 got_inflate_init(struct got_zstream_buf *zb, size_t bufsize)