diff options
author | Pierre Ossman <ossman@cendio.se> | 2006-05-11 11:30:35 +0000 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2006-05-11 11:30:35 +0000 |
commit | 5328afe369b0a124bac4243abae4b53f1b3f58e2 (patch) | |
tree | 921dd43864fe22561fe455eb6eb188cdd53ea8e3 /src | |
parent | 48d66cd5e89764b00fe225db4823b3392a759942 (diff) |
pa_write() should use a const pointer.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@841 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src')
-rw-r--r-- | src/polypcore/util.c | 2 | ||||
-rw-r--r-- | src/polypcore/util.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/polypcore/util.c b/src/polypcore/util.c index beb93f45..c1f82a20 100644 --- a/src/polypcore/util.c +++ b/src/polypcore/util.c @@ -220,7 +220,7 @@ ssize_t pa_read(int fd, void *buf, size_t count) { } /** 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 diff --git a/src/polypcore/util.h b/src/polypcore/util.h index a7c65381..2d5894c3 100644 --- a/src/polypcore/util.h +++ b/src/polypcore/util.h @@ -38,7 +38,7 @@ int pa_make_secure_dir(const char* dir); 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); |