summaryrefslogtreecommitdiff
path: root/src/lib/ecore_con/efl_net_server_unix.c
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@profusion.mobi>2016-12-11 22:17:15 -0200
committerGustavo Sverzut Barbieri <barbieri@profusion.mobi>2016-12-12 02:30:33 -0200
commit96eccc27535e2d2a0de3dae46dbdedb5450e1174 (patch)
tree5121ad915e5e20efe51bb6a5ba2cbb410b26a5c2 /src/lib/ecore_con/efl_net_server_unix.c
parent47ddca0f42f1e0a9f956cc3243e89f0e43ccde5a (diff)
efl_net: move error COULDNT_RESOLVE_HOST to broader scope.
This error is shared by Dialer and Server, will also be used by IP resolution.
Diffstat (limited to '')
-rw-r--r--src/lib/ecore_con/efl_net_server_unix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ecore_con/efl_net_server_unix.c b/src/lib/ecore_con/efl_net_server_unix.c
index c27f59c8c0..4ec917689d 100644
--- a/src/lib/ecore_con/efl_net_server_unix.c
+++ b/src/lib/ecore_con/efl_net_server_unix.c
@@ -77,7 +77,7 @@ _efl_net_server_unix_bind(Eo *o, Efl_Net_Server_Unix_Data *pd)
77 if (strlen(path) + 2 > sizeof(addr.sun_path)) 77 if (strlen(path) + 2 > sizeof(addr.sun_path))
78 { 78 {
79 ERR("abstract path is too long: %s", path); 79 ERR("abstract path is too long: %s", path);
80 err = EFL_NET_SERVER_ERROR_COULDNT_RESOLVE_HOST; 80 err = EFL_NET_ERROR_COULDNT_RESOLVE_HOST;
81 } 81 }
82 addr.sun_path[0] = '\0'; 82 addr.sun_path[0] = '\0';
83 memcpy(addr.sun_path + 1, path, strlen(path) + 1); 83 memcpy(addr.sun_path + 1, path, strlen(path) + 1);
@@ -89,7 +89,7 @@ _efl_net_server_unix_bind(Eo *o, Efl_Net_Server_Unix_Data *pd)
89 if (strlen(path) + 1 > sizeof(addr.sun_path)) 89 if (strlen(path) + 1 > sizeof(addr.sun_path))
90 { 90 {
91 ERR("path is too long: %s", path); 91 ERR("path is too long: %s", path);
92 err = EFL_NET_SERVER_ERROR_COULDNT_RESOLVE_HOST; 92 err = EFL_NET_ERROR_COULDNT_RESOLVE_HOST;
93 } 93 }
94 memcpy(addr.sun_path, path, strlen(path) + 1); 94 memcpy(addr.sun_path, path, strlen(path) + 1);
95 addrlen = strlen(path) + 1 + offsetof(struct sockaddr_un, sun_path); 95 addrlen = strlen(path) + 1 + offsetof(struct sockaddr_un, sun_path);