X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=tests%2Ftest-lockfile.c;h=121b2bab83028e0fff666df9d4b6757cd1fd4172;hb=e6269c12f294f71c9e6a31c153a12cf26124c235;hp=f18e24e8b61cbb0b22b1e664f060856d661fdaf6;hpb=1e8cf0f721e3e21579790c65269a81d39f808528;p=openvswitch diff --git a/tests/test-lockfile.c b/tests/test-lockfile.c index f18e24e8..121b2bab 100644 --- a/tests/test-lockfile.c +++ b/tests/test-lockfile.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009, 2010 Nicira Networks. + * Copyright (c) 2009, 2010, 2011 Nicira Networks. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -231,17 +231,18 @@ static const struct test tests[] = { TEST(lock_timeout_runs_out), TEST(lock_multiple), TEST(help), - { 0, 0 } + { NULL, NULL } #undef TEST }; 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",