summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@gnu.org>2005-04-20 15:26:52 +0000
committerNeal H. Walfield <neal@gnu.org>2005-04-20 15:26:52 +0000
commitd3259802444358fa6f917c7d2a049fc8fcc98cc0 (patch)
treee1dace934975669e77f7fe9617f68da99e0b2a67
parentca420458a592b5fce854d45c7c516cf2fb73f600 (diff)
libpthread/
2005-04-20 Neal H. Walfield <neal@gnu.org> * sysdeps/generic/pt-setschedparam.c: policy's type is int, not int *. * include/pthread/pthread.h: Likewise. Reported by Christopher `Physicman' Bodenstein <cb@physicman.net>.
-rw-r--r--ChangeLog7
-rw-r--r--include/pthread/pthread.h2
-rw-r--r--sysdeps/generic/pt-setschedparam.c4
3 files changed, 10 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 272dff6..9ed9b2b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2005-04-20 Neal H. Walfield <neal@gnu.org>
+
+ * sysdeps/generic/pt-setschedparam.c: policy's type is int, not
+ int *.
+ * include/pthread/pthread.h: Likewise.
+ Reported by Christopher `Physicman' Bodenstein <cb@physicman.net>.
+
2005-01-21 Michael Banck <mbanck@debian.org>
* Makefile ($(libdir)/libpthread2.a): Install linker script
diff --git a/include/pthread/pthread.h b/include/pthread/pthread.h
index 8b25811..7e0e7de 100644
--- a/include/pthread/pthread.h
+++ b/include/pthread/pthread.h
@@ -680,7 +680,7 @@ extern int pthread_getschedparam (pthread_t thread, int *policy,
struct sched_param *param);
/* Set thread THREAD's scheduling paramters. */
-extern int pthread_setschedparam (pthread_t thread, int *policy,
+extern int pthread_setschedparam (pthread_t thread, int policy,
const struct sched_param *param);
/* Set thread THREAD's scheduling priority. */
diff --git a/sysdeps/generic/pt-setschedparam.c b/sysdeps/generic/pt-setschedparam.c
index 6b624a3..a70b079 100644
--- a/sysdeps/generic/pt-setschedparam.c
+++ b/sysdeps/generic/pt-setschedparam.c
@@ -1,5 +1,5 @@
/* Set the scheduling parameters for a thread. Generic version.
- Copyright (C) 2002 Free Software Foundation, Inc.
+ Copyright (C) 2002, 2005 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
@@ -21,7 +21,7 @@
#include <pt-internal.h>
int
-pthread_setschedparam (pthread_t thread, int *policy,
+pthread_setschedparam (pthread_t thread, int policy,
const struct sched_param *param)
{
return ENOSYS;