Change regerror() declaration from K&R style to ANSI C (C89)
authorFrank Li <redacted>
Tue, 17 Aug 2010 09:24:40 +0000 (09:24 +0000)
committerJunio C Hamano <redacted>
Wed, 18 Aug 2010 21:06:54 +0000 (14:06 -0700)
commitde831726decd9c2fcaf7c71136560cf6f5c38a59
tree1f3bf78b0a2a03bd6268014bb4dad9d831a6b90d
parenta997bf423d4baac5b2286edccd1cef897108397f
Change regerror() declaration from K&R style to ANSI C (C89)

The MSVC headers typedef errcode as int, and thus confused the compiler in
the K&R style definition. ANSI style deconfuses it.

This patch was originally applied as v1.6.5-rc2~23 but needs to be
re-applied since compat/regex was overwritten by Ævar Arnfjörð
Bjarmason with the gawk regex engine.

Signed-off-by: Frank Li <redacted>
Signed-off-by: Marius Storm-Olsen <redacted>
Acked-by: Johannes Sixt <redacted>
Signed-off-by: Junio C Hamano <redacted>
Signed-off-by: Ævar Arnfjörð Bjarmason <redacted>
Signed-off-by: Junio C Hamano <redacted>
compat/regex/regcomp.c
git clone https://git.99rst.org/PROJECT