mirror of
https://github.com/mdbtools/mdbtools.git
synced 2026-03-10 00:20:54 +08:00
Automatically init/exit libmdb code
mdb_init() and mdb_exit() are now deprecated.
This commit is contained in:
@@ -29,7 +29,6 @@ main(int argc, char **argv)
|
||||
exit(1);
|
||||
}
|
||||
|
||||
mdb_init();
|
||||
mdb = mdb_open(argv[1], MDB_NOFLAGS);
|
||||
|
||||
table = mdb_read_table_by_name(mdb, argv[2], MDB_TABLE);
|
||||
@@ -40,8 +39,7 @@ main(int argc, char **argv)
|
||||
}
|
||||
|
||||
mdb_close(mdb);
|
||||
mdb_exit();
|
||||
|
||||
exit(0);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user