]> git.proxmox.com Git - mirror_frr.git/blobdiff - pceplib/pcep_pcc.c
Merge pull request #12798 from donaldsharp/rib_match_multicast
[mirror_frr.git] / pceplib / pcep_pcc.c
index 649704f55b99a90ffe179ef0b01867fb978e858d..92a968ef78249a6074f9109285494ed34b36bcec 100644 (file)
@@ -1,21 +1,9 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
 /*
  * This file is part of the PCEPlib, a PCEP protocol library.
  *
  * Copyright (C) 2020 Volta Networks https://voltanet.io/
  *
- * 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 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 program.  If not, see <https://www.gnu.org/licenses/>.
- *
  * Author : Brady Johnson <brady@voltanet.io>
  *
  */
@@ -74,7 +62,6 @@ static const short DEFAULT_SRC_TCP_PORT = 4999;
 // Private fn's
 struct cmd_line_args *get_cmdline_args(int argc, char *argv[]);
 void handle_signal_action(int sig_number);
-int setup_signals(void);
 void send_pce_path_request_message(pcep_session *session);
 void send_pce_report_message(pcep_session *session);
 void print_queue_event(struct pcep_event *event);
@@ -211,11 +198,10 @@ void handle_signal_action(int sig_number)
        }
 }
 
-
-int setup_signals()
+static int setup_signals(void)
 {
        struct sigaction sa;
-       memset(&sa, 0, sizeof(struct sigaction));
+       memset(&sa, 0, sizeof(sa));
        sa.sa_handler = handle_signal_action;
        if (sigaction(SIGINT, &sa, 0) != 0) {
                perror("sigaction()");