X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=include%2Furcu%2Fstatic%2Frculfqueue.h;h=c0daffea78b5f1d2f2b65fb7baab205ae8da58dd;hb=d3d3857f678627e7bbfb5a8d6f3bc15cd2a694d9;hp=a8e109138e10d4e06945e941328454aed8627f43;hpb=014775106c60f02818ca755b331f887030bd440f;p=userspace-rcu.git diff --git a/include/urcu/static/rculfqueue.h b/include/urcu/static/rculfqueue.h index a8e1091..c0daffe 100644 --- a/include/urcu/static/rculfqueue.h +++ b/include/urcu/static/rculfqueue.h @@ -1,29 +1,15 @@ +// SPDX-FileCopyrightText: 2010 Mathieu Desnoyers +// +// SPDX-License-Identifier: LGPL-2.1-or-later + #ifndef _URCU_RCULFQUEUE_STATIC_H #define _URCU_RCULFQUEUE_STATIC_H /* - * rculfqueue-static.h - * * Userspace RCU library - Lock-Free RCU Queue * - * Copyright 2010 - Mathieu Desnoyers - * * TO BE INCLUDED ONLY IN LGPL-COMPATIBLE CODE. See rculfqueue.h for linking * dynamically with the userspace rcu library. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * This library 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 - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with this library; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include @@ -66,7 +52,8 @@ struct cds_lfq_node_rcu *make_dummy(struct cds_lfq_queue_rcu *q, { struct cds_lfq_node_rcu_dummy *dummy; - dummy = malloc(sizeof(struct cds_lfq_node_rcu_dummy)); + dummy = (struct cds_lfq_node_rcu_dummy *) + malloc(sizeof(struct cds_lfq_node_rcu_dummy)); urcu_posix_assert(dummy); dummy->parent.next = next; dummy->parent.dummy = 1;