X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Ftextsearch.c;h=98bcadc0118523faeaf8443d4aeb248520c9798d;hb=940cc2df935d00e704c7b8366bdaedda379abf85;hp=1e934c196f0f1f8dbd7e69a2701f0ecc7ac1a1c7;hpb=cb220c1af49644786944c549518b491d4c654030;p=linux-2.6 diff --git a/lib/textsearch.c b/lib/textsearch.c index 1e934c196f..98bcadc011 100644 --- a/lib/textsearch.c +++ b/lib/textsearch.c @@ -40,7 +40,7 @@ * configuration according to the specified parameters. * (3) User starts the search(es) by calling _find() or _next() to * fetch subsequent occurrences. A state variable is provided - * to the algorihtm to store persistant variables. + * to the algorihtm to store persistent variables. * (4) Core eventually resets the search offset and forwards the find() * request to the algorithm. * (5) Algorithm calls get_next_block() provided by the user continously @@ -93,7 +93,6 @@ * ========================================================================== */ -#include #include #include #include @@ -254,7 +253,7 @@ unsigned int textsearch_find_continuous(struct ts_config *conf, * parameters or a ERR_PTR(). */ struct ts_config *textsearch_prepare(const char *algo, const void *pattern, - unsigned int len, int gfp_mask, int flags) + unsigned int len, gfp_t gfp_mask, int flags) { int err = -ENOENT; struct ts_config *conf;