Commit 9710aac2fcc11960009a5aad05cda68a89e85b7a

Stefan Sperling 2018-01-19T16:29:59

rename helper function

diff --git a/lib/pack.c b/lib/pack.c
index 366063e..3ec264f 100644
--- a/lib/pack.c
+++ b/lib/pack.c
@@ -363,7 +363,7 @@ decode_type_and_size(uint8_t *type, uint64_t *size, size_t *len, FILE *packfile)
 }
 
 static const struct got_error *
-open_packed_plain_object(struct got_object **obj, const char *path_packfile,
+open_plain_object(struct got_object **obj, const char *path_packfile,
     struct got_object_id *id, uint8_t type, off_t offset, size_t size)
 {
 	*obj = calloc(1, sizeof(**obj));
@@ -443,7 +443,7 @@ open_packed_object(struct got_object **obj, struct got_repository *repo,
 	case GOT_OBJ_TYPE_COMMIT:
 	case GOT_OBJ_TYPE_TREE:
 	case GOT_OBJ_TYPE_BLOB:
-		err = open_packed_plain_object(obj, path_packfile, id, type,
+		err = open_plain_object(obj, path_packfile, id, type,
 		    offset + tslen, size);
 		break;