write_nointr takes a const char* buffer
authorJann Horn <jann@thejh.net>
Thu, 11 Jun 2015 12:24:05 +0000 (14:24 +0200)
committerJann Horn <jann@thejh.net>
Thu, 11 Jun 2015 12:24:05 +0000 (14:24 +0200)
io.c

diff --git a/io.c b/io.c
index 1ef3d3d..a0c2ec2 100644 (file)
--- a/io.c
+++ b/io.c
@@ -41,7 +41,7 @@ PUBLIC_FN ssize_t read_nointr(int fd, void *buf, size_t count, int *last_res) {
 //  - -1: error
 //  - 0: stream ended
 //  - 1: no problems occured
-PUBLIC_FN ssize_t write_nointr(int fd, void *buf, ssize_t count, int *last_res) {
+PUBLIC_FN ssize_t write_nointr(int fd, const void *buf, ssize_t count, int *last_res) {
   if (count == -1) count = strlen(buf);
   errno = 0;
   size_t done = 0;