Refactor locks use in support

This commit is contained in:
Andrea Mazzoleni 2016-01-05 16:37:29 +01:00
parent ec5b383c1d
commit c870b04b66
4 changed files with 129 additions and 58 deletions

View file

@ -463,6 +463,8 @@ int main(int argc, char* argv[])
struct tm* tm;
int i;
lock_init();
/* defaults */
config(conf, sizeof(conf), argv[0]);
memset(&opt, 0, sizeof(opt));
@ -1319,6 +1321,7 @@ int main(int argc, char* argv[])
tommy_list_foreach(&filterlist_disk, (tommy_foreach_func*)filter_free);
os_done();
lock_done();
return EXIT_SUCCESS;
}