diff --git a/object.h b/object.h
index ade4dae4470b33a93375b2105016d157c231dd6e..749a6f589059bc773966e2b6942971e6e475b28a 100644 (file)
--- a/object.h
+++ b/object.h
* parsing it. eaten_p indicates if the object has a borrowed copy
* of buffer and the caller should not free() it.
*/
-struct object *parse_object_buffer(const unsigned char *sha1, const char *type, unsigned long size, void *buffer, int *eaten_p);
+struct object *parse_object_buffer(const unsigned char *sha1, enum object_type type, unsigned long size, void *buffer, int *eaten_p);
/** Returns the object, with potentially excess memory allocated. **/
struct object *lookup_unknown_object(const unsigned char *sha1);