cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=d560fe99a1aa9038355f4fbe442a88e8a064661d

commit d560fe99a1aa9038355f4fbe442a88e8a064661d
Author: Srivardhan Hebbar <sri.heb...@samsung.com>
Date:   Wed Apr 22 12:41:43 2015 +0200

    ecore_con: fix ecore_con_lookup_example to actually exit when done.
    
    Summary:
    Without ecore_main_loop_quit the example won't end. So added that and as 
ecore_init is done in ecore_con_init removed that.
    
    Signed-off-by: Srivardhan Hebbar <sri.heb...@samsung.com>
    
    Reviewers: cedric
    
    Subscribers: cedric
    
    Differential Revision: https://phab.enlightenment.org/D2399
    
    Signed-off-by: Cedric BAIL <ced...@osg.samsung.com>
---
 src/examples/ecore/ecore_con_lookup_example.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/examples/ecore/ecore_con_lookup_example.c 
b/src/examples/ecore/ecore_con_lookup_example.c
index 41a001e..3217dac 100644
--- a/src/examples/ecore/ecore_con_lookup_example.c
+++ b/src/examples/ecore/ecore_con_lookup_example.c
@@ -11,7 +11,7 @@ _lookup_done_cb(const char *canonname, const char *ip, struct 
sockaddr *addr, in
    printf("canonname = %s\n", canonname);
    printf("ip = %s\n", ip);
    printf("addr = %p\n", addr);
-   printf("addrlen = %d\n", addrlen);
+   ecore_main_loop_quit();
 }
 
 int
@@ -23,7 +23,6 @@ main(int argc, const char *argv[])
         return -1;
      }
 
-   ecore_init();
    ecore_con_init();
 
    if (!ecore_con_lookup(argv[1], _lookup_done_cb, NULL))
@@ -36,7 +35,6 @@ main(int argc, const char *argv[])
 
 end:
    ecore_con_shutdown();
-   ecore_shutdown();
 
    return 0;
 }

-- 


Reply via email to