summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-07-23 13:41:34 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-07-23 13:41:34 +0000
commit7f3f53bffeb94e39f6f4a32858036024c4de6a36 (patch)
tree464b7af2c39ff96c074913dceeb23edb7c1785ef /src/core
parent76be0d746e9e3d87ad22764e803e08e1dfe1f80c (diff)
downloadirssi-7f3f53bffeb94e39f6f4a32858036024c4de6a36.zip
net_sendbuffer_send(): use const void *data instead of void *data
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@521 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core')
-rw-r--r--src/core/net-sendbuffer.c4
-rw-r--r--src/core/net-sendbuffer.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/core/net-sendbuffer.c b/src/core/net-sendbuffer.c
index dc951f3f..2c11fd4f 100644
--- a/src/core/net-sendbuffer.c
+++ b/src/core/net-sendbuffer.c
@@ -99,7 +99,7 @@ static int sig_sendbuffer(void)
}
/* Add `data' to transmit buffer - return FALSE if buffer is full */
-static int buffer_add(NET_SENDBUF_REC *rec, void *data, int size)
+static int buffer_add(NET_SENDBUF_REC *rec, const void *data, int size)
{
if (rec->buffer == NULL) {
rec->buffer = g_malloc(rec->bufsize);
@@ -117,7 +117,7 @@ static int buffer_add(NET_SENDBUF_REC *rec, void *data, int size)
/* Send data, if all of it couldn't be sent immediately, it will be resent
automatically after a while. Returns -1 if some unrecoverable error
occured. */
-int net_sendbuffer_send(NET_SENDBUF_REC *rec, void *data, int size)
+int net_sendbuffer_send(NET_SENDBUF_REC *rec, const void *data, int size)
{
int ret;
diff --git a/src/core/net-sendbuffer.h b/src/core/net-sendbuffer.h
index 6b2ff372..848db9ec 100644
--- a/src/core/net-sendbuffer.h
+++ b/src/core/net-sendbuffer.h
@@ -14,7 +14,7 @@ void net_sendbuffer_destroy(NET_SENDBUF_REC *rec, int close);
/* Send data, if all of it couldn't be sent immediately, it will be resent
automatically after a while. Returns -1 if some unrecoverable error
occured. */
-int net_sendbuffer_send(NET_SENDBUF_REC *rec, void *data, int size);
+int net_sendbuffer_send(NET_SENDBUF_REC *rec, const void *data, int size);
/* Returns the socket handle */
int net_sendbuffer_handle(NET_SENDBUF_REC *rec);