X-Git-Url: https://the.earth.li/gitweb/?a=blobdiff_plain;f=add.c;h=c3a54a7295601947fc46b8277dbaa4731e324901;hb=adc800dbc424a1e246dd4a82a0c2e88eeda25531;hp=4e03719a82345819a340c3381a8ec3edb9035ba2;hpb=8e0907be1d73011075a99a0c029c56664e12843e;p=onak.git diff --git a/add.c b/add.c index 4e03719..c3a54a7 100644 --- a/add.c +++ b/add.c @@ -13,11 +13,10 @@ * more details. * * You should have received a copy of the GNU General Public License along with - * this program; if not, write to the Free Software Foundation, Inc., 51 - * Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * this program. If not, see . */ -#include +#include #include #include #include @@ -28,10 +27,8 @@ #include "charfuncs.h" #include "getcgi.h" #include "keydb.h" -#include "keystructs.h" #include "log.h" #include "mem.h" -#include "merge.h" #include "onak-conf.h" #include "parsekey.h" @@ -89,9 +86,9 @@ int main(int argc, char *argv[]) fclose(stderr); } catchsignals(); - dbctx = config.dbinit(false); + dbctx = config.dbinit(config.backend, false); - count = cleankeys(keys); + count = cleankeys(&keys, config.clean_policies); logthing(LOGTHING_INFO, "%d keys cleaned.", count);