Commit 5a2e13f79259a3935a3d6aa3cb242d1e33877ef9

Stefan Sperling 2018-01-23T13:54:51

undo previous, a delta base might be a plain object so 'size' is better

diff --git a/lib/delta.c b/lib/delta.c
index 97d9c8f..9c70b67 100644
--- a/lib/delta.c
+++ b/lib/delta.c
@@ -30,7 +30,7 @@
 
 struct got_delta_base *
 got_delta_base_open(const char *path_packfile, int type, off_t offset,
-    size_t delta_size)
+    size_t size)
 {
 	struct got_delta_base *base;
 
@@ -45,7 +45,7 @@ got_delta_base_open(const char *path_packfile, int type, off_t offset,
 	}
 	base->type = type;
 	base->offset = offset;
-	base->delta_size = delta_size;
+	base->size = size;
 	return base;
 }
 
diff --git a/lib/delta.h b/lib/delta.h
index b34485f..62886c7 100644
--- a/lib/delta.h
+++ b/lib/delta.h
@@ -19,7 +19,7 @@ struct got_delta_base {
 	char *path_packfile;
 	off_t offset;
 	int type;
-	size_t delta_size;
+	size_t size;
 };
 
 struct got_delta_chain {