mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-19 08:38:44 +02:00
MEDIUM: pattern: Change the prototype of the function pattern_register().
Each pattern parser take only one string. This change is reported to the function prototype of the function "pattern_register()". Now, it is called with just one string and no need to browse the array of args.
This commit is contained in:
committed by
Willy Tarreau
parent
580c32cb3a
commit
972028fa67
@@ -40,7 +40,7 @@
|
||||
* The function returns 1 if the processing is ok, return 0
|
||||
* if the parser fails, with <err> message filled.
|
||||
*/
|
||||
int pattern_register(struct pattern_expr *expr, const char **args, struct sample_storage *smp, struct pattern **pattern, int patflags, char **err);
|
||||
int pattern_register(struct pattern_expr *expr, const char *arg, struct sample_storage *smp, struct pattern **pattern, int patflags, char **err);
|
||||
|
||||
/* return the PAT_MATCH_* index for match name "name", or < 0 if not found */
|
||||
static inline int pat_find_match_name(const char *name)
|
||||
|
||||
Reference in New Issue
Block a user