[pulseaudio-discuss] [PATCH] memblock: Fix typo in description of pa_memblock_unref_fixed(), cleanup

Peter Meerwald pmeerw at pmeerw.net
Tue Jul 16 08:09:13 PDT 2013


From: Peter Meerwald <p.meerwald at bct-electronic.com>

Signed-off-by: Peter Meerwald <p.meerwald at bct-electronic.com>
---
 src/pulsecore/memblock.c |    2 +-
 src/pulsecore/memblock.h |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/pulsecore/memblock.c b/src/pulsecore/memblock.c
index 2d83b72..998eefa 100644
--- a/src/pulsecore/memblock.c
+++ b/src/pulsecore/memblock.c
@@ -657,7 +657,7 @@ finish:
     memblock_wait(b);
 }
 
-/* No lock necessary. This function is not multiple caller safe*/
+/* No lock necessary. This function is not multiple caller safe */
 void pa_memblock_unref_fixed(pa_memblock *b) {
     pa_assert(b);
     pa_assert(PA_REFCNT_VALUE(b) > 0);
diff --git a/src/pulsecore/memblock.h b/src/pulsecore/memblock.h
index 6a3f2ed..502f207 100644
--- a/src/pulsecore/memblock.h
+++ b/src/pulsecore/memblock.h
@@ -99,9 +99,9 @@ pa_memblock* pa_memblock_ref(pa_memblock*b);
 /* This special unref function has to be called by the owner of the
 memory of a static memory block when he wants to release all
 references to the memory. This causes the memory to be copied and
-converted into a pool or malloc'ed memory block. Please note that this
+converted into a pool of malloc'ed memory block. Please note that this
 function is not multiple caller safe, i.e. needs to be locked
-manually if called from more than one thread at the same time.  */
+manually if called from more than one thread at the same time. */
 void pa_memblock_unref_fixed(pa_memblock*b);
 
 bool pa_memblock_is_read_only(pa_memblock *b);
-- 
1.7.9.5



More information about the pulseaudio-discuss mailing list