summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2015-07-02 13:10:55 +0200
committerTom Hacohen <tom@stosb.com>2015-07-03 16:23:05 +0100
commit2f677eddefa5f9840032b23f44338362c556250f (patch)
tree89ab14e9a47a2234705efc7fecadc21c8f9d1881
parent175e9b9055282c50a950412b790f8533903bce33 (diff)
Ecore_Con_Ares: fix undefined variable warning
-rw-r--r--src/lib/ecore_con/ecore_con_ares.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/ecore_con/ecore_con_ares.c b/src/lib/ecore_con/ecore_con_ares.c
index 6276183a59..e1c7934f87 100644
--- a/src/lib/ecore_con/ecore_con_ares.c
+++ b/src/lib/ecore_con/ecore_con_ares.c
@@ -434,8 +434,11 @@ _ecore_con_info_ares_host_cb(Ecore_Con_CAres *arg,
434 struct hostent *hostent) 434 struct hostent *hostent)
435{ 435{
436 struct sockaddr *addr; 436 struct sockaddr *addr;
437 Ecore_Con_Server_Data *svr;
437 int addrlen; 438 int addrlen;
438 439
440 svr = eo_data_scope_get(arg->svr, ECORE_CON_SERVER_CLASS);
441
439 /* Found something ? */ 442 /* Found something ? */
440 switch (status) 443 switch (status)
441 { 444 {
@@ -446,8 +449,6 @@ _ecore_con_info_ares_host_cb(Ecore_Con_CAres *arg,
446 goto on_error; 449 goto on_error;
447 } 450 }
448 451
449 Ecore_Con_Server_Data *svr = eo_data_scope_get(arg->svr, ECORE_CON_SERVER_CLASS);
450
451 switch (hostent->h_addrtype) 452 switch (hostent->h_addrtype)
452 { 453 {
453 case AF_INET: 454 case AF_INET: