diff options
author | Guillaume Friloux <guillaume.friloux@gmail.com> | 2015-01-30 14:11:56 +0100 |
---|---|---|
committer | Cedric BAIL <cedric@osg.samsung.com> | 2015-02-11 17:03:38 +0100 |
commit | d6f08ba032bcbfcb2d563992c8e4f43c19612d35 (patch) | |
tree | f03550d4e68edfe1106c14ad9b8b054c1502f62d /src | |
parent | c77c0107a22ce56b276298862aba273e1c27cd37 (diff) |
ecore_con: silent warning with send() usage.
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/ecore_con/ecore_con.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/ecore_con/ecore_con.c b/src/lib/ecore_con/ecore_con.c index 36d6415638..75a23d2e54 100644 --- a/src/lib/ecore_con/ecore_con.c +++ b/src/lib/ecore_con/ecore_con.c | |||
@@ -2271,9 +2271,9 @@ _ecore_con_svr_udp_handler(void *data, | |||
2271 | int num; | 2271 | int num; |
2272 | Ecore_Con_Server *svr_obj = data; | 2272 | Ecore_Con_Server *svr_obj = data; |
2273 | Ecore_Con_Client *obj = NULL; | 2273 | Ecore_Con_Client *obj = NULL; |
2274 | +#ifdef _WIN32 | 2274 | #ifdef _WIN32 |
2275 | + u_long mode = 1; | 2275 | u_long mode = 1; |
2276 | +#endif | 2276 | #endif |
2277 | 2277 | ||
2278 | Ecore_Con_Server_Data *svr = eo_data_scope_get(svr_obj, ECORE_CON_SERVER_CLASS); | 2278 | Ecore_Con_Server_Data *svr = eo_data_scope_get(svr_obj, ECORE_CON_SERVER_CLASS); |
2279 | if (svr->delete_me) | 2279 | if (svr->delete_me) |
@@ -2484,9 +2484,9 @@ _ecore_con_server_flush(Ecore_Con_Server *obj) | |||
2484 | FORMAT_MESSAGE_FROM_SYSTEM | | 2484 | FORMAT_MESSAGE_FROM_SYSTEM | |
2485 | FORMAT_MESSAGE_FROM_STRING, | 2485 | FORMAT_MESSAGE_FROM_STRING, |
2486 | NULL, WSAGetLastError(), (DWORD)NULL, s, 0, NULL); | 2486 | NULL, WSAGetLastError(), (DWORD)NULL, s, 0, NULL); |
2487 | ecore_con_event_server_error(svr, (char *)s); | 2487 | ecore_con_event_server_error(obj, (char *)s); |
2488 | free(s); | 2488 | free(s); |
2489 | _ecore_con_server_kill(svr); | 2489 | _ecore_con_server_kill(obj); |
2490 | } | 2490 | } |
2491 | } | 2491 | } |
2492 | } | 2492 | } |
@@ -2495,8 +2495,8 @@ _ecore_con_server_flush(Ecore_Con_Server *obj) | |||
2495 | { | 2495 | { |
2496 | if ((errno != EAGAIN) && (errno != EINTR)) | 2496 | if ((errno != EAGAIN) && (errno != EINTR)) |
2497 | { | 2497 | { |
2498 | ecore_con_event_server_error(svr, strerror(errno)); | 2498 | ecore_con_event_server_error(obj, strerror(errno)); |
2499 | _ecore_con_server_kill(svr); | 2499 | _ecore_con_server_kill(obj); |
2500 | } | 2500 | } |
2501 | return; | 2501 | return; |
2502 | } | 2502 | } |
@@ -2577,7 +2577,7 @@ _ecore_con_client_flush(Ecore_Con_Client *obj) | |||
2577 | if (num <= 0) return; | 2577 | if (num <= 0) return; |
2578 | Ecore_Con_Server_Data *host_server = eo_data_scope_get(cl->host_server, ECORE_CON_SERVER_CLASS); | 2578 | Ecore_Con_Server_Data *host_server = eo_data_scope_get(cl->host_server, ECORE_CON_SERVER_CLASS); |
2579 | if (!(host_server->type & ECORE_CON_SSL) && (!cl->upgrade)) | 2579 | if (!(host_server->type & ECORE_CON_SSL) && (!cl->upgrade)) |
2580 | count = send(cl->fd, eina_binbuf_string_get(cl->buf) + cl->buf_offset, num, 0); | 2580 | count = send(cl->fd, (char *)eina_binbuf_string_get(cl->buf) + cl->buf_offset, num, 0); |
2581 | else | 2581 | else |
2582 | count = ecore_con_ssl_client_write(obj, eina_binbuf_string_get(cl->buf) + cl->buf_offset, num); | 2582 | count = ecore_con_ssl_client_write(obj, eina_binbuf_string_get(cl->buf) + cl->buf_offset, num); |
2583 | } | 2583 | } |