summaryrefslogtreecommitdiff
path: root/unix.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-06-04 07:35:12 +0000
committertron <tron@openttd.org>2005-06-04 07:35:12 +0000
commit1273f21ff58b0746584b02c0608962ef5b677a7c (patch)
tree88285fef5e7b9d4fce88501d60b958183e8e1a9a /unix.c
parent793eba3a3a2fac64e0e4bd860d8c04d75061abd4 (diff)
downloadopenttd-1273f21ff58b0746584b02c0608962ef5b677a7c.tar.xz
(svn r2405) Simplify a few '? true : false' and '? false : true', especially the latter is confusing
Diffstat (limited to 'unix.c')
-rw-r--r--unix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/unix.c b/unix.c
index 9a0464498..84c3365b7 100644
--- a/unix.c
+++ b/unix.c
@@ -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;}