fix return value of pthread_getaffinity_np and pthread_setaffinity_np
authorRich Felker <dalias@aerifal.cx>
Wed, 3 Dec 2014 03:17:52 +0000 (22:17 -0500)
committerRich Felker <dalias@aerifal.cx>
Wed, 3 Dec 2014 03:17:52 +0000 (22:17 -0500)
commit66140b0c926ed097f2cb7474863523e4af351f5b
tree6523a524359b317c728c0f263f8f467612ddf79c
parenta56e339419c1a90f8a85f86621f3c73945e07b23
fix return value of pthread_getaffinity_np and pthread_setaffinity_np

these functions are expected to return an error code rather than
setting errno and returning -1.
src/sched/affinity.c