summaryrefslogtreecommitdiff
path: root/src/lib/ecore_con
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2015-03-17 08:50:56 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-03-17 09:58:21 +0100
commit9b5188810463c1592ba6c428d6ce5b74451d9bcd (patch)
treedfc547dcbed2ba5edc2e43791769a1caf11380b2 /src/lib/ecore_con
parentaab01a80b276d1a9589d17b090fe34d2005d5e6e (diff)
ecore_con: remove deprecated use of Eina_Binbuf functions.
Diffstat (limited to 'src/lib/ecore_con')
-rw-r--r--src/lib/ecore_con/ecore_con_socks.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/ecore_con/ecore_con_socks.c b/src/lib/ecore_con/ecore_con_socks.c
index 893804b216..e6226e3a4d 100644
--- a/src/lib/ecore_con/ecore_con_socks.c
+++ b/src/lib/ecore_con/ecore_con_socks.c
@@ -169,7 +169,7 @@ _ecore_con_socks_svr_init_v4(Ecore_Con_Server *obj, Ecore_Con_Socks_v4 *v4)
169 sbuf[8] = 0; 169 sbuf[8] = 0;
170 if (addrlen) memcpy(sbuf + 8 + ulen, svr->name, addrlen); 170 if (addrlen) memcpy(sbuf + 8 + ulen, svr->name, addrlen);
171 171
172 svr->ecs_buf = eina_binbuf_manage_new_length(sbuf, buflen); 172 svr->ecs_buf = eina_binbuf_manage_new(sbuf, buflen, EINA_FALSE);
173 return EINA_TRUE; 173 return EINA_TRUE;
174} 174}
175 175
@@ -208,7 +208,7 @@ _ecore_con_socks_svr_init_v5(Ecore_Con_Server *obj, Ecore_Con_Socks_v5 *v5)
208 sbuf[2] = ECORE_CON_SOCKS_V5_METHOD_NONE; 208 sbuf[2] = ECORE_CON_SOCKS_V5_METHOD_NONE;
209 } 209 }
210 210
211 svr->ecs_buf = eina_binbuf_manage_new_length(sbuf, buflen); 211 svr->ecs_buf = eina_binbuf_manage_new(sbuf, buflen, EINA_FALSE);
212 return EINA_TRUE; 212 return EINA_TRUE;
213} 213}
214 214
@@ -316,7 +316,7 @@ _ecore_con_socks_auth_v5(Ecore_Con_Server *obj, Ecore_Con_Socks_v5 *v5)
316 memcpy(&data[2 + v5->ulen], v5->password, v5->plen); 316 memcpy(&data[2 + v5->ulen], v5->password, v5->plen);
317 else 317 else
318 data[2 + v5->ulen] = 0; 318 data[2 + v5->ulen] = 0;
319 svr->ecs_buf = eina_binbuf_manage_new_length(data, size); 319 svr->ecs_buf = eina_binbuf_manage_new(data, size, EINA_FALSE);
320 return EINA_TRUE; 320 return EINA_TRUE;
321 321
322 default: 322 default:
@@ -412,7 +412,7 @@ _ecore_con_socks_read_v5(Ecore_Con_Server *obj, Ecore_Con_Socks_v5 *v5, const un
412 sbuf[addrlen + 4] = svr->port >> 8; 412 sbuf[addrlen + 4] = svr->port >> 8;
413 sbuf[addrlen + 5] = svr->port & 0xff; 413 sbuf[addrlen + 5] = svr->port & 0xff;
414 414
415 svr->ecs_buf = eina_binbuf_manage_new_length(sbuf, buflen); 415 svr->ecs_buf = eina_binbuf_manage_new(sbuf, buflen, EINA_FALSE);
416 ecore_main_fd_handler_active_set(svr->fd_handler, ECORE_FD_WRITE); 416 ecore_main_fd_handler_active_set(svr->fd_handler, ECORE_FD_WRITE);
417 break; 417 break;
418 } 418 }