summaryrefslogtreecommitdiffstats
path: root/src/shared/sockhelper.h
diff options
context:
space:
mode:
authorSimon Rettberg2017-10-01 17:10:13 +0200
committerSimon Rettberg2017-10-01 17:10:13 +0200
commita814cf0795ed097fab01261e081aabbea5c4ca28 (patch)
tree3e0d74c35d1049359357eb02a6bdc21f5cdc490f /src/shared/sockhelper.h
parent[SERVER] Fix closing timeout reset, fix log messages (diff)
downloaddnbd3-a814cf0795ed097fab01261e081aabbea5c4ca28.tar.gz
dnbd3-a814cf0795ed097fab01261e081aabbea5c4ca28.tar.xz
dnbd3-a814cf0795ed097fab01261e081aabbea5c4ca28.zip
[*] constness for sock_sendAll params
Diffstat (limited to 'src/shared/sockhelper.h')
-rw-r--r--src/shared/sockhelper.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/sockhelper.h b/src/shared/sockhelper.h
index 86c3b3e..62603c5 100644
--- a/src/shared/sockhelper.h
+++ b/src/shared/sockhelper.h
@@ -92,7 +92,7 @@ bool sock_append(poll_list_t *list, const int sock, bool wantRead, bool wantWrit
* Give up after calling write() maxtries times.
* Set maxtries < 0 to try infinitely.
*/
-ssize_t sock_sendAll(const int sock, void *buffer, const size_t len, int maxtries);
+ssize_t sock_sendAll(const int sock, const void *buffer, const size_t len, int maxtries);
/**
* Send given buffer, repeatedly calling recv on partial send or EINTR.