reconnect: Refactor tests to use common macro.
[openvswitch] / tests / test-lockfile.c
index f18e24e8b61cbb0b22b1e664f060856d661fdaf6..0feb27057d294d39829aee81124fb8e2b7683fc0 100644 (file)
@@ -238,10 +238,11 @@ static const struct test tests[] = {
 int
 main(int argc, char *argv[])
 {
+    extern struct vlog_module VLM_lockfile;
     size_t i;
 
     set_program_name(argv[0]);
-    vlog_set_levels(VLM_lockfile, VLF_ANY_FACILITY, VLL_ERR);
+    vlog_set_levels(&VLM_lockfile, VLF_ANY_FACILITY, VLL_ERR);
 
     if (argc != 2) {
         ovs_fatal(0, "exactly one argument required; use \"%s help\" for help",