summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/libc_r/include/pthread.h5
-rw-r--r--lib/libc_r/uthread/uthread_attr_getdetachstate.c5
-rw-r--r--lib/libpthread/include/pthread.h5
-rw-r--r--lib/libpthread/uthread/uthread_attr_getdetachstate.c5
4 files changed, 12 insertions, 8 deletions
diff --git a/lib/libc_r/include/pthread.h b/lib/libc_r/include/pthread.h
index e44e68c8059..16224681331 100644
--- a/lib/libc_r/include/pthread.h
+++ b/lib/libc_r/include/pthread.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pthread.h,v 1.13 2001/12/08 14:51:36 fgsch Exp $ */
+/* $OpenBSD: pthread.h,v 1.14 2002/01/10 00:45:30 fgsch Exp $ */
/*
* Copyright (c) 1993, 1994 by Chris Provenzano, proven@mit.edu
@@ -207,7 +207,8 @@ __BEGIN_DECLS
int pthread_attr_destroy __P((pthread_attr_t *));
int pthread_attr_getstacksize __P((pthread_attr_t *, size_t *));
int pthread_attr_getstackaddr __P((pthread_attr_t *, void **));
-int pthread_attr_getdetachstate __P((pthread_attr_t *, int *));
+int pthread_attr_getdetachstate __P((const pthread_attr_t *,
+ int *));
int pthread_attr_init __P((pthread_attr_t *));
int pthread_attr_setstacksize __P((pthread_attr_t *, size_t));
int pthread_attr_setstackaddr __P((pthread_attr_t *, void *));
diff --git a/lib/libc_r/uthread/uthread_attr_getdetachstate.c b/lib/libc_r/uthread/uthread_attr_getdetachstate.c
index f0326139902..915caddf33e 100644
--- a/lib/libc_r/uthread/uthread_attr_getdetachstate.c
+++ b/lib/libc_r/uthread/uthread_attr_getdetachstate.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uthread_attr_getdetachstate.c,v 1.3 1999/11/25 07:01:30 d Exp $ */
+/* $OpenBSD: uthread_attr_getdetachstate.c,v 1.4 2002/01/10 00:45:30 fgsch Exp $ */
/*
* Copyright (c) 1997 John Birrell <jb@cimlogic.com.au>.
* All rights reserved.
@@ -37,7 +37,8 @@
#include <pthread.h>
#include "pthread_private.h"
-int pthread_attr_getdetachstate(pthread_attr_t *attr, int *detachstate)
+int
+pthread_attr_getdetachstate(const pthread_attr_t *attr, int *detachstate)
{
int ret;
diff --git a/lib/libpthread/include/pthread.h b/lib/libpthread/include/pthread.h
index e44e68c8059..16224681331 100644
--- a/lib/libpthread/include/pthread.h
+++ b/lib/libpthread/include/pthread.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pthread.h,v 1.13 2001/12/08 14:51:36 fgsch Exp $ */
+/* $OpenBSD: pthread.h,v 1.14 2002/01/10 00:45:30 fgsch Exp $ */
/*
* Copyright (c) 1993, 1994 by Chris Provenzano, proven@mit.edu
@@ -207,7 +207,8 @@ __BEGIN_DECLS
int pthread_attr_destroy __P((pthread_attr_t *));
int pthread_attr_getstacksize __P((pthread_attr_t *, size_t *));
int pthread_attr_getstackaddr __P((pthread_attr_t *, void **));
-int pthread_attr_getdetachstate __P((pthread_attr_t *, int *));
+int pthread_attr_getdetachstate __P((const pthread_attr_t *,
+ int *));
int pthread_attr_init __P((pthread_attr_t *));
int pthread_attr_setstacksize __P((pthread_attr_t *, size_t));
int pthread_attr_setstackaddr __P((pthread_attr_t *, void *));
diff --git a/lib/libpthread/uthread/uthread_attr_getdetachstate.c b/lib/libpthread/uthread/uthread_attr_getdetachstate.c
index f0326139902..915caddf33e 100644
--- a/lib/libpthread/uthread/uthread_attr_getdetachstate.c
+++ b/lib/libpthread/uthread/uthread_attr_getdetachstate.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uthread_attr_getdetachstate.c,v 1.3 1999/11/25 07:01:30 d Exp $ */
+/* $OpenBSD: uthread_attr_getdetachstate.c,v 1.4 2002/01/10 00:45:30 fgsch Exp $ */
/*
* Copyright (c) 1997 John Birrell <jb@cimlogic.com.au>.
* All rights reserved.
@@ -37,7 +37,8 @@
#include <pthread.h>
#include "pthread_private.h"
-int pthread_attr_getdetachstate(pthread_attr_t *attr, int *detachstate)
+int
+pthread_attr_getdetachstate(const pthread_attr_t *attr, int *detachstate)
{
int ret;