From: Carsten Haitzler (Rasterman) Date: Wed, 27 Aug 2014 05:49:47 +0000 (+0900) Subject: ecore-con - use return valude of sendto. X-Git-Tag: upstream/1.11.0+317+g6c7e5b0~69 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f5b975174fb0ba4c41b7639b466c2263afcb895a;p=platform%2Fupstream%2Fefl.git ecore-con - use return valude of sendto. fixes CID 1232726 --- diff --git a/src/lib/ecore_con/ecore_con.c b/src/lib/ecore_con/ecore_con.c index 81b02f8d0d..d9237ec722 100644 --- a/src/lib/ecore_con/ecore_con.c +++ b/src/lib/ecore_con/ecore_con.c @@ -745,9 +745,15 @@ _ecore_con_client_ecore_con_base_send(Eo *obj EINA_UNUSED, Ecore_Con_Client_Data if (cl->host_server && ((host_server->type & ECORE_CON_TYPE) == ECORE_CON_REMOTE_UDP)) - sendto(host_server->fd, data, size, 0, (struct sockaddr *)cl->client_addr, - cl->client_addr_len); - else + { + int ret; + + ret = (int)sendto(host_server->fd, data, size, 0, + (struct sockaddr *)cl->client_addr, + cl->client_addr_len); + return ret; + } + else { if (!cl->buf) {