aboutsummaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-05-12 16:50:29 -0700
committerJunio C Hamano <gitster@pobox.com>2011-05-16 22:13:34 -0700
commitb9a62cbeb91e52aea8fc427a84e72f475dfe60cf (patch)
tree3ff64286b90eb6df7821309f0b69866fe406bbfd /cache.h
parent02071b27f1587c65ddc4779017a3ddceb777de9c (diff)
downloadgit-b9a62cbeb91e52aea8fc427a84e72f475dfe60cf.tar.gz
git-b9a62cbeb91e52aea8fc427a84e72f475dfe60cf.tar.xz
packed_object_info_detail(): do not return a string
Instead return an integer that can be given to typename() if the caller wants a string, just like everybody else does. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cache.h b/cache.h
index b1b5bb589..cdb51120a 100644
--- a/cache.h
+++ b/cache.h
@@ -1020,7 +1020,7 @@ extern off_t find_pack_entry_one(const unsigned char *, struct packed_git *);
extern void *unpack_entry(struct packed_git *, off_t, enum object_type *, unsigned long *);
extern unsigned long unpack_object_header_buffer(const unsigned char *buf, unsigned long len, enum object_type *type, unsigned long *sizep);
extern unsigned long get_size_from_delta(struct packed_git *, struct pack_window **, off_t);
-extern const char *packed_object_info_detail(struct packed_git *, off_t, unsigned long *, unsigned long *, unsigned int *, unsigned char *);
+extern int packed_object_info_detail(struct packed_git *, off_t, unsigned long *, unsigned long *, unsigned int *, unsigned char *);
/* Dumb servers support */
extern int update_server_info(int);