Fixed erros in thread.c
Merge branch 'master' of https://github.com/mrjeremyt/pintos