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:
8f29968
)
memblock: modernizations
author
Lennart Poettering
<lennart@poettering.net>
Fri, 18 Sep 2009 19:24:26 +0000
(21:24 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Fri, 18 Sep 2009 20:16:25 +0000
(22:16 +0200)
src/pulsecore/memblock.c
patch
|
blob
|
history
diff --git
a/src/pulsecore/memblock.c
b/src/pulsecore/memblock.c
index 47f298a4bbfb81371b1d763cd20a9a034afb6598..2b187f04f36c5e304a8d8d8b60cdd9e5e1e9a0b7 100644
(file)
--- a/
src/pulsecore/memblock.c
+++ b/
src/pulsecore/memblock.c
@@
-898,7
+898,7
@@
static pa_memimport_segment* segment_attach(pa_memimport *i, uint32_t shm_id) {
if (pa_hashmap_size(i->segments) >= PA_MEMIMPORT_SEGMENTS_MAX)
return NULL;
- seg = pa_xnew(pa_memimport_segment, 1);
+ seg = pa_xnew
0
(pa_memimport_segment, 1);
if (pa_shm_attach_ro(&seg->memory, shm_id) < 0) {
pa_xfree(seg);
@@
-906,10
+906,9
@@
static pa_memimport_segment* segment_attach(pa_memimport *i, uint32_t shm_id) {
}
seg->import = i;
- seg->n_blocks = 0;
seg->trap = pa_memtrap_add(seg->memory.ptr, seg->memory.size);
- pa_hashmap_put(i->segments, PA_UINT32_TO_PTR(s
hm_
id), seg);
+ pa_hashmap_put(i->segments, PA_UINT32_TO_PTR(s
eg->memory.
id), seg);
return seg;
}