Ecore_Con_Ares: fix undefined variable warning

This commit is contained in:
Vincent Torri 2015-07-02 13:10:55 +02:00 committed by Tom Hacohen
parent 175e9b9055
commit 2f677eddef
1 changed files with 3 additions and 2 deletions

View File

@ -434,8 +434,11 @@ _ecore_con_info_ares_host_cb(Ecore_Con_CAres *arg,
struct hostent *hostent)
{
struct sockaddr *addr;
Ecore_Con_Server_Data *svr;
int addrlen;
svr = eo_data_scope_get(arg->svr, ECORE_CON_SERVER_CLASS);
/* Found something ? */
switch (status)
{
@ -446,8 +449,6 @@ _ecore_con_info_ares_host_cb(Ecore_Con_CAres *arg,
goto on_error;
}
Ecore_Con_Server_Data *svr = eo_data_scope_get(arg->svr, ECORE_CON_SERVER_CLASS);
switch (hostent->h_addrtype)
{
case AF_INET: