summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/network.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/network.c b/src/core/network.c
index 92f27e7e..d8192d04 100644
--- a/src/core/network.c
+++ b/src/core/network.c
@@ -362,7 +362,7 @@ GIOChannel *net_accept(GIOChannel *handle, IPADDR *addr, int *port)
/* Read data from socket, return number of bytes read, -1 = error */
int net_receive(GIOChannel *handle, char *buf, int len)
{
- unsigned long ret;
+ gsize ret;
int err;
g_return_val_if_fail(handle != NULL, -1);
@@ -381,7 +381,7 @@ int net_receive(GIOChannel *handle, char *buf, int len)
/* Transmit data, return number of bytes sent, -1 = error */
int net_transmit(GIOChannel *handle, const char *data, int len)
{
- unsigned long ret;
+ gsize ret;
int err;
g_return_val_if_fail(handle != NULL, -1);