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>
This commit is contained in:
Srivardhan Hebbar 2015-04-22 12:41:43 +02:00 committed by Cedric BAIL
parent 08b99cf201
commit d560fe99a1
1 changed files with 1 additions and 3 deletions

View File

@ -11,7 +11,7 @@ _lookup_done_cb(const char *canonname, const char *ip, struct sockaddr *addr, in
printf("canonname = %s\n", canonname); printf("canonname = %s\n", canonname);
printf("ip = %s\n", ip); printf("ip = %s\n", ip);
printf("addr = %p\n", addr); printf("addr = %p\n", addr);
printf("addrlen = %d\n", addrlen); ecore_main_loop_quit();
} }
int int
@ -23,7 +23,6 @@ main(int argc, const char *argv[])
return -1; return -1;
} }
ecore_init();
ecore_con_init(); ecore_con_init();
if (!ecore_con_lookup(argv[1], _lookup_done_cb, NULL)) if (!ecore_con_lookup(argv[1], _lookup_done_cb, NULL))
@ -36,7 +35,6 @@ main(int argc, const char *argv[])
end: end:
ecore_con_shutdown(); ecore_con_shutdown();
ecore_shutdown();
return 0; return 0;
} }