Automatically init/exit libmdb code

mdb_init() and mdb_exit() are now deprecated.
This commit is contained in:
Nirgal Vourgère
2012-07-22 02:29:04 +02:00
parent f8a3839c7f
commit f6cd70494c
26 changed files with 34 additions and 122 deletions

View File

@@ -59,8 +59,6 @@ int opt;
}
}
mdb_init();
/* open the database */
mdb = mdb_open (argv[optind], MDB_NOFLAGS);
@@ -101,8 +99,7 @@ int opt;
g_free(tabname);
mdb_close (mdb);
mdb_exit();
exit(0);
return 0;
}