]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: pattern: replace struct pattern with struct sample
authorWilly Tarreau <w@1wt.eu>
Mon, 23 Apr 2012 19:35:11 +0000 (21:35 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 8 May 2012 18:57:15 +0000 (20:57 +0200)
commitb4a88f067228cdaddfb7eb96a935a9117672911d
tree2751a3120853f1b09cd5b75363374abb0be5c9f7
parent21e5b0e3cbe6e53acdf4b8a171e029dcd479e985
MINOR: pattern: replace struct pattern with struct sample

This change is pretty minor. Struct pattern is only used for
pattern_process() now so changing it to use the common type is
quite obvious. It's worth noting that the last argument of
pattern_process() is never used so the function is self-sufficient.

Note that pattern_process() does not initialize the pattern at all
before calling fetch->process(), and that minimal initialization
will be required when we later change the argument for the sample.
include/proto/pattern.h
include/types/pattern.h
src/pattern.c
src/stick_table.c