summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/examples/ecore/ecore_con_lookup_example.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/examples/ecore/ecore_con_lookup_example.c b/src/examples/ecore/ecore_con_lookup_example.c
index 41a001e426..3217dacac3 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
11 printf("canonname = %s\n", canonname); 11 printf("canonname = %s\n", canonname);
12 printf("ip = %s\n", ip); 12 printf("ip = %s\n", ip);
13 printf("addr = %p\n", addr); 13 printf("addr = %p\n", addr);
14 printf("addrlen = %d\n", addrlen); 14 ecore_main_loop_quit();
15} 15}
16 16
17int 17int
@@ -23,7 +23,6 @@ main(int argc, const char *argv[])
23 return -1; 23 return -1;
24 } 24 }
25 25
26 ecore_init();
27 ecore_con_init(); 26 ecore_con_init();
28 27
29 if (!ecore_con_lookup(argv[1], _lookup_done_cb, NULL)) 28 if (!ecore_con_lookup(argv[1], _lookup_done_cb, NULL))
@@ -36,7 +35,6 @@ main(int argc, const char *argv[])
36 35
37end: 36end:
38 ecore_con_shutdown(); 37 ecore_con_shutdown();
39 ecore_shutdown();
40 38
41 return 0; 39 return 0;
42} 40}