[pulseaudio-commits] r1751 - in /branches/lennart/src/pulsecore: memchunk.c memchunk.h

svnmailer-noreply at 0pointer.de svnmailer-noreply at 0pointer.de
Sun Sep 2 14:13:18 PDT 2007


Author: lennart
Date: Sun Sep  2 23:13:17 2007
New Revision: 1751

URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=3D1751&root=3Dpulseaudio&vi=
ew=3Drev
Log:
make argument to pa_memchunk_will_need() const

Modified:
    branches/lennart/src/pulsecore/memchunk.c
    branches/lennart/src/pulsecore/memchunk.h

Modified: branches/lennart/src/pulsecore/memchunk.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/lennart/src/pulsecore/=
memchunk.c?rev=3D1751&root=3Dpulseaudio&r1=3D1750&r2=3D1751&view=3Ddiff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- branches/lennart/src/pulsecore/memchunk.c (original)
+++ branches/lennart/src/pulsecore/memchunk.c Sun Sep  2 23:13:17 2007
@@ -76,7 +76,7 @@
     return c;
 }
 =

-pa_memchunk *pa_memchunk_will_need(pa_memchunk *c) {
+pa_memchunk *pa_memchunk_will_need(const pa_memchunk *c) {
     void *p;
 =

     pa_assert(c);
@@ -89,5 +89,5 @@
     pa_will_need(p, c->length);
     pa_memblock_release(c->memblock);
 =

-    return c;
+    return (pa_memchunk*) c;
 }

Modified: branches/lennart/src/pulsecore/memchunk.h
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/branches/lennart/src/pulsecore/=
memchunk.h?rev=3D1751&root=3Dpulseaudio&r1=3D1750&r2=3D1751&view=3Ddiff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
--- branches/lennart/src/pulsecore/memchunk.h (original)
+++ branches/lennart/src/pulsecore/memchunk.h Sun Sep  2 23:13:17 2007
@@ -45,6 +45,6 @@
 pa_memchunk* pa_memchunk_reset(pa_memchunk *c);
 =

 /* Map a memory chunk back into memory if it was swapped out */
-pa_memchunk *pa_memchunk_will_need(pa_memchunk *c);
+pa_memchunk *pa_memchunk_will_need(const pa_memchunk *c);
 =

 #endif




More information about the pulseaudio-commits mailing list