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
@@ -2,7 +2,7 @@
2 stream.c 2 stream.c
3 3
4 This file is part of GNU Anubis. 4 This file is part of GNU Anubis.
5 Copyright (C) 2004-2014 The Anubis Team. 5 Copyright (C) 2004-2024 The Anubis Team.
6 6
7 GNU Anubis is free software; you can redistribute it and/or modify it 7 GNU Anubis is free software; you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published by the 8 under the terms of the GNU General Public License as published by the
@@ -53,7 +53,7 @@ _def_strerror (void *data, int rc)
53static int 53static int
54_def_write (void *sd, const char *data, size_t size, size_t * nbytes) 54_def_write (void *sd, const char *data, size_t size, size_t * nbytes)
55{ 55{
56 int rc = send ((int) sd, data, size, 0); 56 int rc = send ((int) (ptrdiff_t) sd, data, size, 0);
57 if (rc >= 0) 57 if (rc >= 0)
58 { 58 {
59 *nbytes = rc; 59 *nbytes = rc;
@@ -65,7 +65,7 @@ _def_write (void *sd, const char *data, size_t size, size_t * nbytes)
65static int 65static int
66_def_read (void *sd, char *data, size_t size, size_t * nbytes) 66_def_read (void *sd, char *data, size_t size, size_t * nbytes)
67{ 67{
68 int rc = recv ((int) sd, data, size, 0); 68 int rc = recv ((int) (ptrdiff_t) sd, data, size, 0);
69 if (rc >= 0) 69 if (rc >= 0)
70 { 70 {
71 *nbytes = rc; 71 *nbytes = rc;
@@ -77,7 +77,7 @@ _def_read (void *sd, char *data, size_t size, size_t * nbytes)
77static int 77static int
78_def_close (void *sd) 78_def_close (void *sd)
79{ 79{
80 close ((int) sd); 80 close ((int) (ptrdiff_t) sd);
81 return 0; 81 return 0;
82} 82}
83 83

Return to:

Send suggestions and report system problems to the System administrator.