]> git.proxmox.com Git - mirror_frr.git/blobdiff - pathd/path_pcep.c
Merge pull request #12798 from donaldsharp/rib_match_multicast
[mirror_frr.git] / pathd / path_pcep.c
index ce631eb7b040933484c13e0c0bfe4f0dfe3a88f3..0c5e495044d12f36054d9c7b47a867cb0a2d1f2e 100644 (file)
@@ -1,19 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0-or-later
 /*
  * Copyright (C) 2020  NetDEF, Inc.
- *
- * 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
  */
 
 #include <zebra.h>
@@ -210,7 +197,7 @@ int pcep_main_event_handler(enum pcep_main_event_type type, int pcc_id,
                ret = pcep_main_event_remove_candidate_segments(
                        (const char *)payload, true);
                break;
-       default:
+       case PCEP_MAIN_EVENT_UNDEFINED:
                flog_warn(EC_PATH_PCEP_RECOVERABLE_INTERNAL_ERROR,
                          "Unexpected event received in the main thread: %u",
                          type);