From 1273f21ff58b0746584b02c0608962ef5b677a7c Mon Sep 17 00:00:00 2001 From: tron Date: Sat, 4 Jun 2005 07:35:12 +0000 Subject: (svn r2405) Simplify a few '? true : false' and '? false : true', especially the latter is confusing --- unix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'unix.c') 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;} -- cgit v1.2.3-54-g00ecf