mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
64bit fixes by Stefan Fent
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3129 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
d97b52b5a2
commit
9ae4779c87
@ -40,7 +40,7 @@ typedef struct {
|
|||||||
|
|
||||||
static int g_io_channel_write_block(GIOChannel *channel, void *data, int len)
|
static int g_io_channel_write_block(GIOChannel *channel, void *data, int len)
|
||||||
{
|
{
|
||||||
unsigned int ret;
|
unsigned long ret;
|
||||||
int err, sent;
|
int err, sent;
|
||||||
|
|
||||||
sent = 0;
|
sent = 0;
|
||||||
@ -56,7 +56,7 @@ static int g_io_channel_write_block(GIOChannel *channel, void *data, int len)
|
|||||||
static int g_io_channel_read_block(GIOChannel *channel, void *data, int len)
|
static int g_io_channel_read_block(GIOChannel *channel, void *data, int len)
|
||||||
{
|
{
|
||||||
time_t maxwait;
|
time_t maxwait;
|
||||||
unsigned int ret;
|
unsigned long ret;
|
||||||
int err, received;
|
int err, received;
|
||||||
|
|
||||||
maxwait = time(NULL)+2;
|
maxwait = time(NULL)+2;
|
||||||
|
@ -362,7 +362,7 @@ GIOChannel *net_accept(GIOChannel *handle, IPADDR *addr, int *port)
|
|||||||
/* Read data from socket, return number of bytes read, -1 = error */
|
/* Read data from socket, return number of bytes read, -1 = error */
|
||||||
int net_receive(GIOChannel *handle, char *buf, int len)
|
int net_receive(GIOChannel *handle, char *buf, int len)
|
||||||
{
|
{
|
||||||
unsigned int ret;
|
unsigned long ret;
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
g_return_val_if_fail(handle != NULL, -1);
|
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 */
|
/* Transmit data, return number of bytes sent, -1 = error */
|
||||||
int net_transmit(GIOChannel *handle, const char *data, int len)
|
int net_transmit(GIOChannel *handle, const char *data, int len)
|
||||||
{
|
{
|
||||||
unsigned int ret;
|
unsigned long ret;
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
g_return_val_if_fail(handle != NULL, -1);
|
g_return_val_if_fail(handle != NULL, -1);
|
||||||
|
Loading…
Reference in New Issue
Block a user