about summary refs log tree commit diff
path: root/nptl/pthread_condattr_getpshared.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/pthread_condattr_getpshared.c')
-rw-r--r--nptl/pthread_condattr_getpshared.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nptl/pthread_condattr_getpshared.c b/nptl/pthread_condattr_getpshared.c
index 7b91f14f46..b44eac94e7 100644
--- a/nptl/pthread_condattr_getpshared.c
+++ b/nptl/pthread_condattr_getpshared.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2002 Free Software Foundation, Inc.
+/* Copyright (C) 2002, 2003 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
 
@@ -25,7 +25,7 @@ pthread_condattr_getpshared (attr, pshared)
      const pthread_condattr_t *attr;
      int *pshared;
 {
-  *pshared = ((const struct pthread_condattr *) attr)->pshared;
+  *pshared = ((const struct pthread_condattr *) attr)->value & 1;
 
   return 0;
 }