projects
/
platform
/
upstream
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e802830
)
shm: Use a goto rather than early return for consistency.
author
Maarten Bosmans
<mkbosmans@gmail.com>
Sun, 27 Nov 2011 16:12:10 +0000
(16:12 +0000)
committer
Colin Guthrie
<colin@mageia.org>
Sun, 27 Nov 2011 16:25:04 +0000
(16:25 +0000)
This is functionally the same but is easier to understand.
src/pulsecore/shm.c
patch
|
blob
|
history
diff --git
a/src/pulsecore/shm.c
b/src/pulsecore/shm.c
index
06e32c4
..
fe34a51
100644
(file)
--- a/
src/pulsecore/shm.c
+++ b/
src/pulsecore/shm.c
@@
-176,7
+176,7
@@
int pa_shm_create_rw(pa_shm *m, size_t size, pa_bool_t shared, mode_t mode) {
pa_assert_se(pa_close(fd) == 0);
m->do_unlink = TRUE;
#else
-
return -1
;
+
goto fail
;
#endif
}