1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-05 09:14:03 +00:00

Use htonl() rather than htons().

This commit is contained in:
Brian Somers 1997-11-13 11:43:02 +00:00
parent 65d748cf46
commit 5ae6fac1d7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=31148
2 changed files with 2 additions and 2 deletions

View File

@ -1332,7 +1332,7 @@ int StrToPort (char* str, char* proto)
port = strtol (str, &end, 10);
if (end != str)
return htons (port);
return htonl (port);
sp = getservbyname (str, proto);
if (!sp)

View File

@ -1332,7 +1332,7 @@ int StrToPort (char* str, char* proto)
port = strtol (str, &end, 10);
if (end != str)
return htons (port);
return htonl (port);
sp = getservbyname (str, proto);
if (!sp)