summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSrivardhan Hebbar <sri.hebbar@samsung.com>2015-04-22 12:41:43 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-04-22 15:10:19 +0200
commitd560fe99a1aa9038355f4fbe442a88e8a064661d (patch)
tree2f99a39b939bcb7f9bc3219f855f965a48ad6bc7
parent08b99cf20169de924e935160d7b18efe6bdac12f (diff)
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.hebbar@samsung.com> Reviewers: cedric Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D2399 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
-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}