summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/polypcore/util.c2
-rw-r--r--src/polypcore/util.h2
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);