From 89daa86ab6713e3ec53f677d12a1e58783f605a7 Mon Sep 17 00:00:00 2001 From: Gilles Chehade Date: Thu, 27 May 2010 11:17:30 +0000 Subject: kill struct opt from struct rule, we don't use it, we don't need it --- usr.sbin/smtpd/config.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'usr.sbin/smtpd/config.c') diff --git a/usr.sbin/smtpd/config.c b/usr.sbin/smtpd/config.c index 577b09c992e..7cdb79def4d 100644 --- a/usr.sbin/smtpd/config.c +++ b/usr.sbin/smtpd/config.c @@ -1,4 +1,4 @@ -/* $OpenBSD: config.c,v 1.10 2010/04/20 15:34:56 jacekm Exp $ */ +/* $OpenBSD: config.c,v 1.11 2010/05/27 11:17:29 gilles Exp $ */ /* * Copyright (c) 2008 Pierre-Yves Ritschard @@ -59,7 +59,6 @@ purge_config(struct smtpd *env, u_int8_t what) struct map *m; struct rule *r; struct cond *c; - struct opt *o; struct ssl *s; struct mapel *me; @@ -90,10 +89,6 @@ purge_config(struct smtpd *env, u_int8_t what) TAILQ_REMOVE(&r->r_conditions, c, c_entry); free(c); } - while ((o = TAILQ_FIRST(&r->r_options)) != NULL) { - TAILQ_REMOVE(&r->r_options, o, o_entry); - free(o); - } free(r); } free(env->sc_rules); -- cgit v1.2.3