wmbiff: regulo_match modifies instructions[i].destination, so remove const.

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
This commit is contained in:
Jeremy Sowden 2019-06-28 16:11:16 +01:00 committed by Carlos R. Mafra
parent 759e9a363a
commit 3c0016eb79
2 changed files with 6 additions and 6 deletions

View file

@ -52,8 +52,8 @@ void regulo_strcpy_skip1(void *dest, const char *source)
/* deprecated as unportable */
int
regulo_match(const char *regex,
const char *string, const struct regulo *instructions)
regulo_match(const char *regex, const char *string,
struct regulo *instructions)
{
struct re_registers regs;
int ret;
@ -108,8 +108,8 @@ int compile_and_match_regex_posix(const char *regex, const char *str, /*@out@ */
int
regulo_match(const char *regex,
const char *string, const struct regulo *instructions)
regulo_match(const char *regex, const char *string,
struct regulo *instructions)
{
regmatch_t regs[20];
int ret;

View file

@ -13,5 +13,5 @@ struct regulo {
void (*match_handler) (void *dest, const char *source);
};
int regulo_match(const char *regex,
const char *string, const struct regulo *instructions);
int regulo_match(const char *regex, const char *string,
struct regulo *instructions);