X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=lib%2Fqobj.c;h=b9630e7547133f4d479070b1c1c8c429e79eeaed;hb=HEAD;hp=cb3254cbe9305e9fd5824d346884487525c1d80c;hpb=2d3d6521784253752cd56de39ebb0d4ec4ee3f5d;p=mirror_frr.git diff --git a/lib/qobj.c b/lib/qobj.c index cb3254cbe..b9630e754 100644 --- a/lib/qobj.c +++ b/lib/qobj.c @@ -1,26 +1,13 @@ +// SPDX-License-Identifier: GPL-2.0-or-later /* * Copyright (c) 2015-16 David Lamparter, for NetDEF, Inc. * * This file is part of Quagga - * - * Quagga 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, or (at your option) any - * later version. - * - * Quagga 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; see the file COPYING; if not, write to the Free Software - * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #include -#include "thread.h" +#include "frrevent.h" #include "memory.h" #include "hash.h" #include "log.h" @@ -43,7 +30,7 @@ static int qobj_cmp(const struct qobj_node *na, const struct qobj_node *nb) } DECLARE_HASH(qobj_nodes, struct qobj_node, nodehash, - qobj_cmp, qobj_hash) + qobj_cmp, qobj_hash); static pthread_rwlock_t nodes_lock; static struct qobj_nodes_head nodes = { };