-/* $OpenBSD: smtpd.h,v 1.612 2018/12/27 15:41:50 gilles Exp $ */
+/* $OpenBSD: smtpd.h,v 1.613 2018/12/28 11:13:58 eric Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@poolp.org>
enum table_type t_type;
char t_config[PATH_MAX];
- struct dict t_dict;
-
void *t_handle;
struct table_backend *t_backend;
- void *t_iter;
};
struct table_backend {
-/* $OpenBSD: table.c,v 1.43 2018/12/27 15:04:59 eric Exp $ */
+/* $OpenBSD: table.c,v 1.44 2018/12/28 11:13:58 eric Exp $ */
/*
* Copyright (c) 2013 Eric Faurot <eric@openbsd.org>
fatalx("table_create: table name too long");
}
- dict_init(&t->t_dict);
dict_set(conf->sc_tables_dict, t->t_name, t);
return (t);
void
table_destroy(struct smtpd *conf, struct table *t)
{
- void *p = NULL;
-
- while (dict_poproot(&t->t_dict, (void **)&p))
- free(p);
-
dict_xpop(conf->sc_tables_dict, t->t_name);
free(t);
}