diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-11-28 00:59:12 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-11-28 00:59:12 +0000 |
commit | 05e8f243851049cebda6c5b690d3cde0f1e2c874 (patch) | |
tree | 9799a322fee3aefb07eaafa00875f214ad2b7ea6 /src/wsocket.c | |
parent | 50da56dbeeec0cc7856ac06057cb778b502e087b (diff) | |
download | luasocket-05e8f243851049cebda6c5b690d3cde0f1e2c874.tar.gz luasocket-05e8f243851049cebda6c5b690d3cde0f1e2c874.tar.bz2 luasocket-05e8f243851049cebda6c5b690d3cde0f1e2c874.zip |
New LTN12 test procedures (still short, but growing)
LTN12 avoids coroutines.
Diffstat (limited to 'src/wsocket.c')
-rw-r--r-- | src/wsocket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wsocket.c b/src/wsocket.c index 0294dce..69fac4d 100644 --- a/src/wsocket.c +++ b/src/wsocket.c | |||
@@ -193,7 +193,7 @@ int sock_send(p_sock ps, const char *data, size_t count, size_t *sent, p_tm tm) | |||
193 | *sent = 0; | 193 | *sent = 0; |
194 | for ( ;; ) { | 194 | for ( ;; ) { |
195 | /* try to send something */ | 195 | /* try to send something */ |
196 | int put = send(*ps, data, count, 0); | 196 | int put = send(*ps, data, (int) count, 0); |
197 | /* if we sent something, we are done */ | 197 | /* if we sent something, we are done */ |
198 | if (put > 0) { | 198 | if (put > 0) { |
199 | *sent = put; | 199 | *sent = put; |