summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd/expand.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/smtpd/expand.c')
-rw-r--r--usr.sbin/smtpd/expand.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/usr.sbin/smtpd/expand.c b/usr.sbin/smtpd/expand.c
index 434d08cdb37..06c525a3a5b 100644
--- a/usr.sbin/smtpd/expand.c
+++ b/usr.sbin/smtpd/expand.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: expand.c,v 1.19 2013/01/26 09:37:23 gilles Exp $ */
+/* $OpenBSD: expand.c,v 1.20 2013/01/31 18:34:43 eric Exp $ */
/*
* Copyright (c) 2009 Gilles Chehade <gilles@poolp.org>
@@ -68,7 +68,7 @@ expand_insert(struct expand *expand, struct expandnode *node)
}
void
-expand_free(struct expand *expand)
+expand_clear(struct expand *expand)
{
struct expandnode *xn;
@@ -82,6 +82,13 @@ expand_free(struct expand *expand)
}
}
+void
+expand_free(struct expand *expand)
+{
+ expand_clear(expand);
+ free(expand);
+}
+
int
expand_cmp(struct expandnode *e1, struct expandnode *e2)
{