]> git.ipfire.org Git - thirdparty/git.git/commit - sha1-name.c
get_oid_with_context(): match prototype and implementation
authorDuy Nguyen <pclouds@gmail.com>
Tue, 12 Feb 2019 12:43:23 +0000 (19:43 +0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 12 Feb 2019 18:14:56 +0000 (10:14 -0800)
commit127b48f99fb39736b3b8da1a81ec4f7dcf1d7f63
tree52e0d01d627db1e80c1030e5e5464b2d166012f9
parent243a4c7e274ea060ea35c5dc6701e2cf918e0f29
get_oid_with_context(): match prototype and implementation

The get_oid_with_context() function is declared to return an enum in
cache.h, but defined to return an int in sha1-name.c.  The compiler
notices this on AIX and rejects the build, since d1dd94b308 (Do not
print 'dangling' for cat-file in case of ambiguity - 2019-01-17) was
merged.

Return the correct type from the implementation to fix this.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sha1-name.c