diff options
Diffstat (limited to 'nptl')
-rw-r--r-- | nptl/ChangeLog | 7 | ||||
-rw-r--r-- | nptl/sysdeps/pthread/setxid.h | 8 |
2 files changed, 11 insertions, 4 deletions
diff --git a/nptl/ChangeLog b/nptl/ChangeLog index 22b820866b..f3a2753519 100644 --- a/nptl/ChangeLog +++ b/nptl/ChangeLog @@ -1,3 +1,10 @@ +2011-01-14 Ulrich Drepper <drepper@gmail.com> + + [BZ #10563] + * sysdeps/pthread/setxid.h (__SETXID_1): Add cast to assignment. + (__SETXID_2): Likewise. + (__SETXID_3): Likewise. + 2011-01-13 Ulrich Drepper <drepper@gmail.com> [BZ #10484] diff --git a/nptl/sysdeps/pthread/setxid.h b/nptl/sysdeps/pthread/setxid.h index aebdbd236a..043ffd25b7 100644 --- a/nptl/sysdeps/pthread/setxid.h +++ b/nptl/sysdeps/pthread/setxid.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2004, 2007 Free Software Foundation, Inc. +/* Copyright (C) 2004, 2007, 2011 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 @@ -20,11 +20,11 @@ #include <sysdep.h> #define __SETXID_1(cmd, arg1) \ - cmd.id[0] = arg1 + cmd.id[0] = (long int) arg1 #define __SETXID_2(cmd, arg1, arg2) \ - __SETXID_1 (cmd, arg1); cmd.id[1] = arg2 + __SETXID_1 (cmd, arg1); cmd.id[1] = (long int) arg2 #define __SETXID_3(cmd, arg1, arg2, arg3) \ - __SETXID_2 (cmd, arg1, arg2); cmd.id[2] = arg3 + __SETXID_2 (cmd, arg1, arg2); cmd.id[2] = (long int) arg3 #ifdef SINGLE_THREAD # define INLINE_SETXID_SYSCALL(name, nr, args...) \ |