]> git.proxmox.com Git - mirror_frr.git/blobdiff - pceplib/test/pcep_session_logic_loop_test.c
*: auto-convert to SPDX License IDs
[mirror_frr.git] / pceplib / test / pcep_session_logic_loop_test.c
index 96beceac597982869c0ce340ea05f0a02d6eb998..0f74cff31ec234906680e9660220ac003abf94af 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>
  *
  */
@@ -140,14 +128,14 @@ void test_session_logic_msg_ready_handler()
        /* Read from an empty file should return 0, thus
         * session_logic_msg_ready_handler returns -1 */
        mode_t oldumask;
-       oldumask = umask(S_IXUSR|S_IXGRP|S_IWOTH|S_IROTH|S_IXOTH);
+       oldumask = umask(S_IXUSR | S_IXGRP | S_IWOTH | S_IROTH | S_IXOTH);
        /* Set umask before anything for security */
        umask(0027);
        char tmpfile[] = "/tmp/pceplib_XXXXXX";
        int fd = mkstemp(tmpfile);
        umask(oldumask);
-       if (fd == -1){
-               CU_ASSERT_TRUE(fd>=0);
+       if (fd == -1) {
+               CU_ASSERT_TRUE(fd >= 0);
                return;
        }
        pcep_session session;