diff options
author | Neal H. Walfield <neal@gnu.org> | 2005-04-20 15:26:52 +0000 |
---|---|---|
committer | Neal H. Walfield <neal@gnu.org> | 2005-04-20 15:26:52 +0000 |
commit | d3259802444358fa6f917c7d2a049fc8fcc98cc0 (patch) | |
tree | e1dace934975669e77f7fe9617f68da99e0b2a67 | |
parent | ca420458a592b5fce854d45c7c516cf2fb73f600 (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-- | ChangeLog | 7 | ||||
-rw-r--r-- | include/pthread/pthread.h | 2 | ||||
-rw-r--r-- | sysdeps/generic/pt-setschedparam.c | 4 |
3 files changed, 10 insertions, 3 deletions
@@ -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; |