diff options
Diffstat (limited to 'src/stream.c')
-rw-r--r-- | src/stream.c | 8 |
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) | |||
53 | static int | 53 | static 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) | |||
65 | static int | 65 | static 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) | |||
77 | static int | 77 | static 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 | ||