repositories
/
deb_libnfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f69bd55
)
AROS: we need htons to convert socket port to network order
author
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Sat, 13 Apr 2013 01:12:56 +0000
(18:12 -0700)
committer
Ronnie Sahlberg
<ronniesahlberg@gmail.com>
Sat, 13 Apr 2013 01:12:56 +0000
(18:12 -0700)
aros/aros_compat.c
patch
|
blob
|
blame
|
history
diff --git
a/aros/aros_compat.c
b/aros/aros_compat.c
index 02c0954d6eec48d7c6f6c8d5777e9a936e78f360..955f8e382d5a5ce176ce1859ea1450c45a0d1e41 100644
(file)
--- 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));