Commit 3a77ae9e authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(aux_item_definition_cache_regexp): Don't set the translate field of

	the pattern buffer to DEFAULT_COLLAT_TAB.  That causes a
	warning.  The field is anyhow set to NULL on the next line, as
	it should be.
(aux_item_validate): Cast the "string" argument of re_search to char*
	to get rid of a warning.
parent 7c583ac3
/*
* $Id: aux-items.c,v 1.46 2002/08/17 17:24:18 ceder Exp $
* $Id: aux-items.c,v 1.47 2002/10/05 07:23:20 ceder Exp $
* Copyright (C) 1994-2002 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -427,7 +427,6 @@ aux_item_definition_cache_regexp(const Aux_item_definition *def,
return;
}
pat_buf = def->validators[ix].v.re.cached_re_buf;
pat_buf->translate = DEFAULT_COLLAT_TAB;
pat_buf->translate = NULL;
pat_buf->fastmap = 0;
pat_buf->allocated = 0;
......@@ -967,7 +966,7 @@ static Bool aux_item_validate(Aux_item_validation_data validation_data)
*/
switch (re_search(def->validators[i].v.re.cached_re_buf,
validation_data.item->data.string,
(char*)validation_data.item->data.string,
s_strlen(validation_data.item->data),
0,
s_strlen(validation_data.item->data),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment