mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 04:10:54 -08:00
(main): Convert port to network byte order.
This commit is contained in:
parent
fee3f63a1c
commit
9cc6060db7
1 changed files with 1 additions and 1 deletions
|
|
@ -122,7 +122,7 @@ main (argc, argv)
|
|||
bzero (&sockin, sizeof (sockin));
|
||||
sockin.sin_family = host->h_addrtype;
|
||||
bcopy (host->h_addr, &sockin.sin_addr, host->h_length);
|
||||
sockin.sin_port = port;
|
||||
sockin.sin_port = htons (port);
|
||||
if ((server = socket (AF_INET, SOCK_STREAM, 0)) < 0)
|
||||
{
|
||||
perror ("socket");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue