X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=tests%2Fregression%2Ftest_urcu_fork.c;h=52ccce756b293ab401c4abb6644b4294c51fe8e5;hb=HEAD;hp=81dbe7742f769fb5b82db701de9cb515c148c60e;hpb=014775106c60f02818ca755b331f887030bd440f;p=urcu.git diff --git a/tests/regression/test_urcu_fork.c b/tests/regression/test_urcu_fork.c index 81dbe77..52ccce7 100644 --- a/tests/regression/test_urcu_fork.c +++ b/tests/regression/test_urcu_fork.c @@ -1,23 +1,9 @@ +// SPDX-FileCopyrightText: 2012 Mathieu Desnoyers +// +// SPDX-License-Identifier: GPL-2.0-or-later + /* - * test_urcu_fork.c - * * Userspace RCU library - test program (fork) - * - * Copyright February 2012 - Mathieu Desnoyers - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ #include @@ -88,7 +74,7 @@ static void test_rcu(void) rcu_read_lock(); rcu_read_unlock(); - node = malloc(sizeof(*node)); + node = (struct test_node *) malloc(sizeof(*node)); urcu_posix_assert(node); call_rcu(&node->head, cb);