wmbiff: regulo_match
modifies instructions[i].destination
, so remove const
.
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
This commit is contained in:
parent
759e9a363a
commit
3c0016eb79
|
@ -52,8 +52,8 @@ void regulo_strcpy_skip1(void *dest, const char *source)
|
||||||
/* deprecated as unportable */
|
/* deprecated as unportable */
|
||||||
|
|
||||||
int
|
int
|
||||||
regulo_match(const char *regex,
|
regulo_match(const char *regex, const char *string,
|
||||||
const char *string, const struct regulo *instructions)
|
struct regulo *instructions)
|
||||||
{
|
{
|
||||||
struct re_registers regs;
|
struct re_registers regs;
|
||||||
int ret;
|
int ret;
|
||||||
|
@ -108,8 +108,8 @@ int compile_and_match_regex_posix(const char *regex, const char *str, /*@out@ */
|
||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
regulo_match(const char *regex,
|
regulo_match(const char *regex, const char *string,
|
||||||
const char *string, const struct regulo *instructions)
|
struct regulo *instructions)
|
||||||
{
|
{
|
||||||
regmatch_t regs[20];
|
regmatch_t regs[20];
|
||||||
int ret;
|
int ret;
|
||||||
|
|
|
@ -13,5 +13,5 @@ struct regulo {
|
||||||
void (*match_handler) (void *dest, const char *source);
|
void (*match_handler) (void *dest, const char *source);
|
||||||
};
|
};
|
||||||
|
|
||||||
int regulo_match(const char *regex,
|
int regulo_match(const char *regex, const char *string,
|
||||||
const char *string, const struct regulo *instructions);
|
struct regulo *instructions);
|
||||||
|
|
Loading…
Reference in a new issue