]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/db.c
Merge pull request #12798 from donaldsharp/rib_match_multicast
[mirror_frr.git] / lib / db.c
index 32ba83b65671faff1c080311d95e5213502953be..55f29adfb535522384ed0881a9ffa7d778aedcb8 100644 (file)
--- a/lib/db.c
+++ b/lib/db.c
@@ -1,35 +1,10 @@
+// SPDX-License-Identifier: ISC AND GPL-2.0-or-later
 /*
  * Copyright (c) 2018 Rafael Zalamena <rzalamena@gmail.com>
- *
- * 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; see the file COPYING; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
 /*
  * Copyright (c) 2016 Rafael Zalamena <rzalamena@gmail.com>
- *
- * Permission to use, copy, modify, and/or distribute this software for any
- * purpose with or without fee is hereby granted, provided that the above
- * copyright notice and this permission notice appear in all copies.
- *
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
 #include <zebra.h>
@@ -60,7 +35,7 @@ int db_init(const char *path_fmt, ...)
                            (SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE), NULL)
            != SQLITE_OK) {
                if (dbp == NULL) {
-                       zlog_warn("%s: failed to open dabatase '%s'", __func__,
+                       zlog_warn("%s: failed to open database '%s'", __func__,
                                  path);
                        return -1;
                }