aboutsummaryrefslogtreecommitdiff
path: root/src/stream.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stream.c')
-rw-r--r--src/stream.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/stream.c b/src/stream.c
index 3211aea..6f65d2b 100644
--- a/src/stream.c
+++ b/src/stream.c
@@ -1,11 +1,11 @@
/*
stream.c
This file is part of GNU Anubis.
- Copyright (C) 2004-2014 The Anubis Team.
+ Copyright (C) 2004-2024 The Anubis Team.
GNU Anubis is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 3 of the License, or (at your
option) any later version.
@@ -50,37 +50,37 @@ _def_strerror (void *data, int rc)
return strerror (rc);
}
static int
_def_write (void *sd, const char *data, size_t size, size_t * nbytes)
{
- int rc = send ((int) sd, data, size, 0);
+ int rc = send ((int) (ptrdiff_t) sd, data, size, 0);
if (rc >= 0)
{
*nbytes = rc;
return 0;
}
return errno;
}
static int
_def_read (void *sd, char *data, size_t size, size_t * nbytes)
{
- int rc = recv ((int) sd, data, size, 0);
+ int rc = recv ((int) (ptrdiff_t) sd, data, size, 0);
if (rc >= 0)
{
*nbytes = rc;
return 0;
}
return errno;
}
static int
_def_close (void *sd)
{
- close ((int) sd);
+ close ((int) (ptrdiff_t) sd);
return 0;
}
void
stream_create (struct net_stream **str)
{

Return to:

Send suggestions and report system problems to the System administrator.