Skip to content
Snippets Groups Projects
Commit 9d044991 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Removed lint.

parent 2dff6c76
No related branches found
No related tags found
No related merge requests found
/* /*
* $Id: regex-match.c,v 1.3 1993/01/16 23:18:07 ceder Exp $ * $Id: regex-match.c,v 1.4 1993/08/05 01:09:59 ceder Exp $
* Copyright (C) 1992 Lysator Academic Computer Association. * Copyright (C) 1992 Lysator Academic Computer Association.
* *
* This file is part of the LysKOM server. * This file is part of the LysKOM server.
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
* Regexp matching * Regexp matching
*/ */
static char *rcsid = "$Id: regex-match.c,v 1.3 1993/01/16 23:18:07 ceder Exp $"; static char *rcsid = "$Id: regex-match.c,v 1.4 1993/08/05 01:09:59 ceder Exp $";
#include "rcs.h" #include "rcs.h"
USE(rcsid); USE(rcsid);
...@@ -54,7 +54,7 @@ lookup_regexp (const String regexp, ...@@ -54,7 +54,7 @@ lookup_regexp (const String regexp,
struct re_pattern_buffer pat_buf; struct re_pattern_buffer pat_buf;
Conf_no conf_no; Conf_no conf_no;
String name = EMPTY_STRING; String name = EMPTY_STRING;
char *errmsg; const char *errmsg;
/* +++ Unnecessary to allocate this much if only one conference matches. */ /* +++ Unnecessary to allocate this much if only one conference matches. */
result->conf_nos = tmp_alloc (cached_no_of_existing_conferences() result->conf_nos = tmp_alloc (cached_no_of_existing_conferences()
...@@ -69,7 +69,9 @@ lookup_regexp (const String regexp, ...@@ -69,7 +69,9 @@ lookup_regexp (const String regexp,
pat_buf.allocated = 0; pat_buf.allocated = 0;
pat_buf.buffer = 0; pat_buf.buffer = 0;
if (errmsg = re_compile_pattern(regexp.string, s_strlen(regexp), &pat_buf)) if ((errmsg =
re_compile_pattern(regexp.string, s_strlen(regexp), &pat_buf))
!= NULL)
{ {
regfree(&pat_buf); regfree(&pat_buf);
kom_errno = KOM_REGEX_ERROR; kom_errno = KOM_REGEX_ERROR;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment