]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - setjmp/sigjmp.c
Prefer https to http for gnu.org and fsf.org URLs
[thirdparty/glibc.git] / setjmp / sigjmp.c
index 8dc691465edc5d2b97e7b6be8cfe35ea355de0af..564cdd00729773b602ca2c4d4dfd83c50cc69baa 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1992-2014 Free Software Foundation, Inc.
+/* Copyright (C) 1992-2019 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
 
    You should have received a copy of the GNU Lesser General Public
    License along with the GNU C Library; if not, see
-   <http://www.gnu.org/licenses/>.  */
+   <https://www.gnu.org/licenses/>.  */
 
 #include <stddef.h>
-#include <setjmp.h>
+#include <setjmpP.h>
 #include <signal.h>
 
 /* This function is called by the `sigsetjmp' macro
@@ -26,9 +26,9 @@
 int
 __sigjmp_save (sigjmp_buf env, int savemask)
 {
-  env[0].__mask_was_saved = (savemask &&
-                            __sigprocmask (SIG_BLOCK, (sigset_t *) NULL,
-                                           &env[0].__saved_mask) == 0);
+  env[0].__mask_was_saved = (savemask
+                            && __sigprocmask (SIG_BLOCK, (sigset_t *) NULL,
+                                              (sigset_t *) &env[0].__saved_mask) == 0);
 
   return 0;
 }