projects
/
libjh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0fa47e6
)
write_nointr takes a const char* buffer
author
Jann Horn
<jann@thejh.net>
Thu, 11 Jun 2015 12:24:05 +0000
(14:24 +0200)
committer
Jann Horn
<jann@thejh.net>
Thu, 11 Jun 2015 12:24:05 +0000
(14:24 +0200)
io.c
patch
|
blob
|
history
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;