summaryrefslogtreecommitdiff
path: root/src/examples/ecore/efl_net_ip_address_example.c
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2019-02-01 11:04:17 +0000
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-02-01 14:25:35 +0000
commitf7c560c311d0ba0da94346e17c8b20f40a0ed152 (patch)
treeaf5f63aceb78ff1b153f3727f8adab6ee4e1d653 /src/examples/ecore/efl_net_ip_address_example.c
parent36286a23fe97e3667c1106116d1edbc301c7a9ba (diff)
replace hton and ntoh family functions with ones defined in eina
Summary: This fixes especially the execution of edje_cc on Windows Test Plan: execution of edje_cc Reviewers: cedric, raster Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7834
Diffstat (limited to '')
-rw-r--r--src/examples/ecore/efl_net_ip_address_example.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/examples/ecore/efl_net_ip_address_example.c b/src/examples/ecore/efl_net_ip_address_example.c
index ee1595b6c3..16fc876117 100644
--- a/src/examples/ecore/efl_net_ip_address_example.c
+++ b/src/examples/ecore/efl_net_ip_address_example.c
@@ -43,13 +43,13 @@ _print_ip_addr_info(const Eo *o)
43 { 43 {
44 struct sockaddr_in *a = (struct sockaddr_in *)sa; 44 struct sockaddr_in *a = (struct sockaddr_in *)sa;
45 inet_ntop(sa->sa_family, &a->sin_addr, buf, sizeof(buf)); 45 inet_ntop(sa->sa_family, &a->sin_addr, buf, sizeof(buf));
46 port = ntohs(a->sin_port); 46 port = eina_ntohs(a->sin_port);
47 } 47 }
48 else 48 else
49 { 49 {
50 struct sockaddr_in6 *a = (struct sockaddr_in6 *)sa; 50 struct sockaddr_in6 *a = (struct sockaddr_in6 *)sa;
51 inet_ntop(sa->sa_family, &a->sin6_addr, buf, sizeof(buf)); 51 inet_ntop(sa->sa_family, &a->sin6_addr, buf, sizeof(buf));
52 port = ntohs(a->sin6_port); 52 port = eina_ntohs(a->sin6_port);
53 } 53 }
54 54
55 printf("INFO: - sockaddr=%p (%d, '%s', %u)\n", 55 printf("INFO: - sockaddr=%p (%d, '%s', %u)\n",