use more appropriate casts to avoid warnings when sizeof(pthread_t) != sizeof(void *)
use more appropriate casts to avoid warnings when sizeof(pthread_t) != sizeof(void *)

git-svn-id: f2acecaac6fbd5a03f3d4799db58dda434111981@21111 3eda493b-6a19-0410-b2e0-ec8ea4dd8fda

pscedu/slash2-stable,pscedu/pfl,pscedu/slash2-stable,pscedu/pfl,pscedu/slash2-stable,pscedu/slash2-stable,pscedu/slash2-stable,pscedu/pfl,pscedu/slash2-stable,pscedu/pfl,pscedu/slash2-stable