summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 627735f)
raw | patch | inline | side by side (parent: 627735f)
author | Frank Li <lznuaa@gmail.com> | |
Wed, 16 Sep 2009 08:20:19 +0000 (10:20 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 19 Sep 2009 03:00:42 +0000 (20:00 -0700) |
The MSVC headers typedef errcode as int, and thus confused the compiler in
the K&R style definition. ANSI style deconfuses it.
Signed-off-by: Frank Li <lznuaa@gmail.com>
Signed-off-by: Marius Storm-Olsen <mstormo@gmail.com>
Acked-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
the K&R style definition. ANSI style deconfuses it.
Signed-off-by: Frank Li <lznuaa@gmail.com>
Signed-off-by: Marius Storm-Olsen <mstormo@gmail.com>
Acked-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/regex/regex.c | patch | blob | history |
diff --git a/compat/regex/regex.c b/compat/regex/regex.c
index 5ea007567d15c229685f571628d4afcce6783e8d..67d5c370a04c0630089e8601eafde5c05957959c 100644 (file)
--- a/compat/regex/regex.c
+++ b/compat/regex/regex.c
from either regcomp or regexec. We don't use PREG here. */
size_t
-regerror (errcode, preg, errbuf, errbuf_size)
- int errcode;
- const regex_t *preg;
- char *errbuf;
- size_t errbuf_size;
+regerror(int errcode, const regex_t *preg,
+ char *errbuf, size_t errbuf_size)
{
const char *msg;
size_t msg_size;