commit-slab: sizeof() the right type in xrealloc
[gitweb.git] / sha1_file.c
index f80bbe467437a4ffc161a4cdd09f97cf5436d4f9..7dadd04cb75a9f681cab17f616600cf437fe82ba 100644 (file)
@@ -2514,7 +2514,6 @@ static int sha1_loose_object_info(const unsigned char *sha1,
        return 0;
 }
 
-/* returns enum object_type or negative */
 int sha1_object_info_extended(const unsigned char *sha1, struct object_info *oi)
 {
        struct cached_object *co;
@@ -2563,6 +2562,7 @@ int sha1_object_info_extended(const unsigned char *sha1, struct object_info *oi)
        return 0;
 }
 
+/* returns enum object_type or negative */
 int sha1_object_info(const unsigned char *sha1, unsigned long *sizep)
 {
        enum object_type type;