mirror of
https://github.com/mdbtools/mdbtools.git
synced 2026-01-02 20:42:14 +08:00
Automatically init/exit libmdb code
mdb_init() and mdb_exit() are now deprecated.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user