aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-04-27 01:04:40 +0200
committerMattias Andrée <maandree@operamail.com>2015-04-27 01:04:40 +0200
commitbeaa422f61e6f9a5825e584c119d8d24fdd3f89d (patch)
treea099acaa0232016bb48a75f972b388868c329cc2
parentm man formatting (diff)
downloadbus-beaa422f61e6f9a5825e584c119d8d24fdd3f89d.tar.gz
bus-beaa422f61e6f9a5825e584c119d8d24fdd3f89d.tar.bz2
bus-beaa422f61e6f9a5825e584c119d8d24fdd3f89d.tar.xz
m whitespace
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/bus.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/bus.c b/src/bus.c
index 25bfbd8..ff2abeb 100644
--- a/src/bus.c
+++ b/src/bus.c
@@ -595,6 +595,7 @@ bus_close(bus_t *bus)
t(close_shared_memory(bus));
bus->message = NULL;
return 0;
+
fail:
return -1;
}
@@ -622,6 +623,7 @@ bus_write(const bus_t *bus, const char *message)
t(acquire_semaphore(bus, N, SEM_UNDO)); state--;
t(release_semaphore(bus, X, SEM_UNDO));
return 0;
+
fail:
saved_errno = errno;
if (state > 0)
@@ -674,6 +676,7 @@ bus_read(const bus_t *bus, int (*callback)(const char *message, void *user_data)
t(release_semaphore(bus, S, SEM_UNDO)); state--;
t(acquire_semaphore(bus, W, SEM_UNDO)); state--;
}
+
fail:
saved_errno = errno;
if (state > 1)
@@ -722,6 +725,7 @@ bus_poll(bus_t *bus)
t(release_semaphore(bus, Q, 0));
t(zero_semaphore(bus, Q, 0));
return bus->message;
+
fail:
saved_errno = errno;
if (state > 1)