From 3c0016eb792b1f3349d511c0d76d0e94ab099515 Mon Sep 17 00:00:00 2001 From: Jeremy Sowden Date: Fri, 28 Jun 2019 16:11:16 +0100 Subject: [PATCH] wmbiff: `regulo_match` modifies `instructions[i].destination`, so remove `const`. Signed-off-by: Jeremy Sowden --- wmbiff/wmbiff/regulo.c | 8 ++++---- wmbiff/wmbiff/regulo.h | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/wmbiff/wmbiff/regulo.c b/wmbiff/wmbiff/regulo.c index 07b5268..a1beefe 100644 --- a/wmbiff/wmbiff/regulo.c +++ b/wmbiff/wmbiff/regulo.c @@ -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; diff --git a/wmbiff/wmbiff/regulo.h b/wmbiff/wmbiff/regulo.h index 4bce791..9f1ec2b 100644 --- a/wmbiff/wmbiff/regulo.h +++ b/wmbiff/wmbiff/regulo.h @@ -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);