Commit 1aca59f8 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(lookup_regexp): Cast the "pattern" argument of re_compile_pattern to

	char* to get rid of a warning.
(lookup_regexp): Cast the "string" argument of re_search to char* to
	get rid of a warning.
parent 3a77ae9e
/*
* $Id: regex-match.c,v 1.32 2002/03/29 22:38:04 ceder Exp $
* $Id: regex-match.c,v 1.33 2002/10/05 07:23:34 ceder Exp $
* Copyright (C) 1992-1999, 2001-2002 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -91,7 +91,7 @@ lookup_regexp (Connection *conn,
pat_buf.buffer = 0;
if ((errmsg =
re_compile_pattern(regexp.string, s_strlen(regexp), &pat_buf))
re_compile_pattern((char*)regexp.string, s_strlen(regexp), &pat_buf))
!= NULL)
{
regfree(&pat_buf);
......@@ -107,7 +107,8 @@ lookup_regexp (Connection *conn,
&& access_perm(conf_no, conn, read_protected) > none)
{
name = cached_get_name(conf_no);
switch ( re_search (&pat_buf, name.string, s_strlen(name), 0,
switch ( re_search (&pat_buf,
(char*)name.string, s_strlen(name), 0,
s_strlen(name), NULL) )
{
case -1:
......
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