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

@@ -32,7 +32,6 @@ int found = 0;
exit(1);
}
mdb_init();
mdb = mdb_open(argv[1], MDB_NOFLAGS);
mdb_read_catalog(mdb, MDB_TABLE);
@@ -50,8 +49,6 @@ int found = 0;
fprintf(stderr,"No table named %s found.\n", argv[2]);
}
mdb_close(mdb);
mdb_exit();
exit(0);
return 0;
}