[polypaudio-commits] r841 - in /trunk/src/polypcore: util.c util.h
svnmailer-noreply at 0pointer.de
svnmailer-noreply at 0pointer.de
Thu May 11 04:30:36 PDT 2006
Author: ossman
Date: Thu May 11 13:30:35 2006
New Revision: 841
URL: http://0pointer.de/cgi-bin/viewcvs.cgi?rev=841&root=polypaudio&view=rev
Log:
pa_write() should use a const pointer.
Modified:
trunk/src/polypcore/util.c
trunk/src/polypcore/util.h
Modified: trunk/src/polypcore/util.c
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/polypcore/util.c?rev=841&root=polypaudio&r1=840&r2=841&view=diff
==============================================================================
--- trunk/src/polypcore/util.c (original)
+++ trunk/src/polypcore/util.c Thu May 11 13:30:35 2006
@@ -220,7 +220,7 @@
}
/** Similar to pa_read(), but handles writes */
-ssize_t pa_write(int fd, void *buf, size_t count) {
+ssize_t pa_write(int fd, const void *buf, size_t count) {
ssize_t r;
#ifdef OS_IS_WIN32
Modified: trunk/src/polypcore/util.h
URL: http://0pointer.de/cgi-bin/viewcvs.cgi/trunk/src/polypcore/util.h?rev=841&root=polypaudio&r1=840&r2=841&view=diff
==============================================================================
--- trunk/src/polypcore/util.h (original)
+++ trunk/src/polypcore/util.h Thu May 11 13:30:35 2006
@@ -38,7 +38,7 @@
int pa_make_secure_parent_dir(const char *fn);
ssize_t pa_read(int fd, void *buf, size_t count);
-ssize_t pa_write(int fd, void *buf, size_t count);
+ssize_t pa_write(int fd, const void *buf, size_t count);
ssize_t pa_loop_read(int fd, void*data, size_t size);
ssize_t pa_loop_write(int fd, const void*data, size_t size);
More information about the pulseaudio-commits
mailing list