From: Ronnie Sahlberg Date: Sat, 13 Apr 2013 01:12:56 +0000 (-0700) Subject: AROS: we need htons to convert socket port to network order X-Git-Tag: upstream/1.9.6^2~228 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=5c9c5f15f17e02722298de56f40feffffdddf191;p=deb_libnfs.git AROS: we need htons to convert socket port to network order --- diff --git a/aros/aros_compat.c b/aros/aros_compat.c index 02c0954..955f8e3 100644 --- a/aros/aros_compat.c +++ b/aros/aros_compat.c @@ -40,7 +40,7 @@ struct addrinfo **res) sin->sin_port=0; if (service) { - sin->sin_port=atoi(service); + sin->sin_port=htons(atoi(service)); } *res = malloc(sizeof(struct addrinfo));