From aee5a6384985746420fda1c07d4231c4272ae715 Mon Sep 17 00:00:00 2001 From: Robert James Kaes Date: Fri, 13 Feb 2004 21:27:42 +0000 Subject: Removed unnecessary casts (mostly dealing with memory allocation.) I should never have added them in the first place. They don't really buy anything, and they can hide bugs. --- src/filter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/filter.c') diff --git a/src/filter.c b/src/filter.c index 99505a3..2205f6b 100644 --- a/src/filter.c +++ b/src/filter.c @@ -1,4 +1,4 @@ -/* $Id: filter.c,v 1.19 2003-10-17 16:11:00 rjkaes Exp $ +/* $Id: filter.c,v 1.20 2004-02-13 21:27:42 rjkaes Exp $ * * Copyright (c) 1999 George Talusan (gstalusan@uwaterloo.ca) * Copyright (c) 2002 James E. Flemer (jflemer@acm.jhu.edu) @@ -106,7 +106,7 @@ filter_init(void) } p->pat = safestrdup(s); - p->cpat = (regex_t*)safemalloc(sizeof(regex_t)); + p->cpat = safemalloc(sizeof(regex_t)); if ((err = regcomp(p->cpat, p->pat, cflags)) != 0) { fprintf(stderr, "Bad regex in %s: %s\n", config.filter, p->pat); -- cgit v1.2.3