(svn r2405) Simplify a few '? true : false' and '? false : true', especially the latter is confusing

This commit is contained in:
tron
2005-06-04 07:35:12 +00:00
parent 793eba3a3a
commit 1273f21ff5
5 changed files with 8 additions and 8 deletions

2
unix.c
View File

@@ -559,7 +559,7 @@ bool InsertTextBufferClipboard(Textbuf *tb)
static pthread_t thread1 = 0;
bool CreateOTTDThread(void *func, void *param)
{
return (pthread_create(&thread1, NULL, func, param) == 0) ? true : false;
return pthread_create(&thread1, NULL, func, param) == 0;
}
void CloseOTTDThread(void) {return;}