aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmdsclient
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-07-10 16:00:34 +0200
committerMattias Andrée <maandree@kth.se>2016-07-10 16:00:34 +0200
commit58f8347e84d2820cada64c513bb0f2b81ecd494a (patch)
tree758f5f2241c384b8d0e8ce349498784515ae5607 /src/libmdsclient
parentAdd -l flags for mds-libinput (diff)
downloadmds-58f8347e84d2820cada64c513bb0f2b81ecd494a.tar.gz
mds-58f8347e84d2820cada64c513bb0f2b81ecd494a.tar.bz2
mds-58f8347e84d2820cada64c513bb0f2b81ecd494a.tar.xz
Fix new GCC warnings
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/libmdsclient')
-rw-r--r--src/libmdsclient/inbound.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libmdsclient/inbound.c b/src/libmdsclient/inbound.c
index f2ea03c..019ed51 100644
--- a/src/libmdsclient/inbound.c
+++ b/src/libmdsclient/inbound.c
@@ -554,8 +554,8 @@ int libmds_mspool_initialise(libmds_mspool_t* restrict this)
this->messages = malloc(sizeof(libmds_message_t*));
if (this->messages == NULL)
return -1;
- if (sem_init(&(this->lock), 0, 1) < 0) goto fail; stage++;
- if (sem_init(&(this->semaphore), 0, 0) < 0) goto fail; stage++;
+ if (sem_init(&(this->lock), 0, 1) < 0) goto fail; else stage++;
+ if (sem_init(&(this->semaphore), 0, 0) < 0) goto fail; else stage++;
if (sem_init(&(this->wait_semaphore), 0, 0) < 0) goto fail;
return 0;
fail: