From 014d206df7599be4c3c0ac1734807a90dbcc388f Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Mon, 13 Aug 2012 17:00:02 +0000 Subject: [PATCH] PCRE_INFO_SIZE requires a size_t argument --- modules/lcr/lcr_mod.c | 3 ++- modules_k/regex/regex_mod.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/lcr/lcr_mod.c b/modules/lcr/lcr_mod.c index 3bdcc98fb..d02d72fef 100644 --- a/modules/lcr/lcr_mod.c +++ b/modules/lcr/lcr_mod.c @@ -758,7 +758,8 @@ static pcre *reg_ex_comp(const char *pattern) { pcre *re, *result; const char *error; - int rc, size, err_offset; + int rc, err_offset; + size_t size; re = pcre_compile(pattern, 0, &error, &err_offset, NULL); if (re == NULL) { diff --git a/modules_k/regex/regex_mod.c b/modules_k/regex/regex_mod.c index 51665aa69..eb9f7440c 100644 --- a/modules_k/regex/regex_mod.c +++ b/modules_k/regex/regex_mod.c @@ -260,7 +260,7 @@ static int load_pcres(int action) char line[FILE_MAX_LINE]; char **patterns = NULL; pcre *pcre_tmp = NULL; - int pcre_size; + size_t pcre_size; int pcre_rc; const char *pcre_error; int pcre_erroffset;