summaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-02-19 21:07:43 +0000
committerai4rei <ai4rei@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-02-19 21:07:43 +0000
commit9c8a86940f666a4a059195691a872f04ff1f414a (patch)
tree1b34503789691d315a9f070e28d4ff2e1043160c /src/plugins
parent17f0f15706cebb77c4ffe236ae1ace6233c3800f (diff)
downloadhercules-9c8a86940f666a4a059195691a872f04ff1f414a.tar.gz
hercules-9c8a86940f666a4a059195691a872f04ff1f414a.tar.bz2
hercules-9c8a86940f666a4a059195691a872f04ff1f414a.tar.xz
hercules-9c8a86940f666a4a059195691a872f04ff1f414a.zip
* Fixed gcc compile warnings in char-server and console plug-in (bugreport:4771, topic:208746, since r9631 and r14700).
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14716 54d463be-8e91-2dee-dedb-b68131a5f0ec
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