diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-04-27 01:04:40 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-04-27 01:04:40 +0200 |
commit | beaa422f61e6f9a5825e584c119d8d24fdd3f89d (patch) | |
tree | a099acaa0232016bb48a75f972b388868c329cc2 /src/bus.c | |
parent | m man formatting (diff) | |
download | bus-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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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) |