diff options
author | jinh0.choi <jinh0.choi@samsung.com> | 2017-08-09 15:14:42 +0900 |
---|---|---|
committer | jinh0.choi <jinh0.choi@samsung.com> | 2017-08-09 15:16:18 +0900 |
commit | 7dd86e2793d63984b6416ff3fff1651a18e31ba4 (patch) | |
tree | 5d0f9f067ce7c7095e2f42a7520f7657cbae4195 | |
parent | e6230f92c2a7c924f4092b877ee70a74f76e6841 (diff) | |
download | qemu-7dd86e2793d63984b6416ff3fff1651a18e31ba4.tar.gz qemu-7dd86e2793d63984b6416ff3fff1651a18e31ba4.tar.bz2 qemu-7dd86e2793d63984b6416ff3fff1651a18e31ba4.zip |
ecs: change host address data type to INADDR_ANY
Change-Id: Ic08e5e35897a0c7a531fe85eadf2afaf6f219111
Signed-off-by: jinh0.choi <jinh0.choi@samsung.com>
-rw-r--r-- | tizen/src/ecs/ecs.h | 2 | ||||
-rw-r--r-- | tizen/src/util/net_helper.c | 6 |
2 files changed, 1 insertions, 7 deletions
diff --git a/tizen/src/ecs/ecs.h b/tizen/src/ecs/ecs.h index 3458dfaaa5..1eda628c0d 100644 --- a/tizen/src/ecs/ecs.h +++ b/tizen/src/ecs/ecs.h @@ -34,8 +34,6 @@ #include "ecs_internal.h" -#define HOST_LISTEN_ADDR "127.0.0.1" - #define COMMANDS_TYPE "type" #define COMMANDS_DATA "data" diff --git a/tizen/src/util/net_helper.c b/tizen/src/util/net_helper.c index ff6c5c4fb7..c6298d8df9 100644 --- a/tizen/src/util/net_helper.c +++ b/tizen/src/util/net_helper.c @@ -79,11 +79,7 @@ int check_port_bind_listen(uint32_t port) int ret = -1; addr.sin_family = AF_INET; addr.sin_port = htons(port); - - if (inet_aton(HOST_LISTEN_ADDR, &addr.sin_addr) == 0) { - LOG_SEVERE("inet_aton failure\n"); - return -1; - } + addr.sin_addr.s_addr = INADDR_ANY; ret = qemu_socket(PF_INET, SOCK_STREAM, 0); if (ret < 0) { |