Subject: CVS commit: src/lib/libpthread
To: None <source-changes@NetBSD.org>
From: Todd Vierling <tv@netbsd.org>
List: source-changes
Date: 09/21/2005 15:27:14
Module Name:	src
Committed By:	tv
Date:		Wed Sep 21 15:27:14 UTC 2005

Modified Files:
	src/lib/libpthread: pthread_attr.c

Log Message:
pthread_attr_getschedpolicy() wasn't setting the return buffer at all.
SCHED_OTHER happens to be 0, so this assignment to "int *" succeeds,
and becomes a no-op.

Fix by dereferencing "policy" to do the assignment, thus filling the
return buffer with 0.


To generate a diff of this commit:
cvs rdiff -r1.4 -r1.5 src/lib/libpthread/pthread_attr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.