]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - sysdeps/generic/sigset-cvt-mask.h
Update copyright notices with scripts/update-copyrights
[thirdparty/glibc.git] / sysdeps / generic / sigset-cvt-mask.h
index c9a0434e7e903af1ebba973b8422c908f00f9812..acb4e01655b36279b8d897a6b3eea4875a4d87af 100644 (file)
@@ -1,6 +1,6 @@
 /* Convert between lowlevel sigmask and libc representation of sigset_t.
    Generic version.
-   Copyright (C) 1998, 2002 Free Software Foundation, Inc.
+   Copyright (C) 1998-2014 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Joe Keane <jgk@jgk.org>.
 
@@ -15,9 +15,8 @@
    Lesser General Public License for more details.
 
    You should have received a copy of the GNU Lesser General Public
-   License along with the GNU C Library; if not, write to the Free
-   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
-   02111-1307 USA.  */
+   License along with the GNU C Library; if not, see
+   <http://www.gnu.org/licenses/>.  */
 
 /* Convert between an old-style 32-bit signal mask and a POSIX sigset_t.  */
 
@@ -27,10 +26,10 @@ static inline int __attribute__ ((unused))
 sigset_set_old_mask (sigset_t *set, int mask)
 {
   if (sizeof (__sigset_t) == sizeof (unsigned int))
-    *set = (unsigned int) (mask);
+    *set = (unsigned int) mask;
   else
     {
-      register unsigned int __sig;
+      unsigned int __sig;
 
       if (__sigemptyset (set) < 0)
        return -1;
@@ -53,7 +52,7 @@ sigset_get_old_mask (const sigset_t *set)
   else
     {
       unsigned int mask = 0;
-      register unsigned int sig;
+      unsigned int sig;
 
       for (sig = 1; sig < NSIG && sig <= sizeof (mask) * 8; sig++)
        if (__sigismember (set, sig))