summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/console.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/plugins/console.c b/src/plugins/console.c
index b1307f863..bf1a133ca 100644
--- a/src/plugins/console.c
+++ b/src/plugins/console.c
@@ -34,8 +34,7 @@
do{ \
DWORD dwThreadId; \
buf.worker = CreateThread(NULL, 0, worker_ ## name, NULL, CREATE_SUSPENDED, &dwThreadId); \
- if( errvar ) \
- *errvar = ( buf.worker == NULL ); \
+ *(errvar) = ( buf.worker == NULL ); \
}while(0)
/// Buffer for asynchronous input
@@ -61,8 +60,7 @@ typedef struct _buffer {
if( pid == 0 ){ \
worker_ ## name(); \
} \
- if( errvar ) \
- *errvar = (pid == -1); \
+ *(errvar) = (pid == -1); \
}while(0)
#define PIPE_READ 0