forked from mirrors/tftp-hpa-google
remap: change the mode argument from a boolean to a character
Instead of taking a boolean value for get/put, pass a character; this allows us to extend the number of possibilities in the future. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
parent
e7a7b19483
commit
0b5732e263
3 changed files with 11 additions and 15 deletions
|
@ -35,7 +35,7 @@ struct rule *parserulefile(FILE *);
|
|||
void freerules(struct rule *);
|
||||
|
||||
/* Execute a rule set on a string; returns a malloc'd new string. */
|
||||
char *rewrite_string(const char *, const struct rule *, int,
|
||||
char *rewrite_string(const char *, const struct rule *, char,
|
||||
match_pattern_callback, const char **);
|
||||
|
||||
#endif /* WITH_REGEX */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue