1
Fork 0
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:
Karl Heuer 1996-02-21 17:11:13 +00:00
parent fee3f63a1c
commit 9cc6060db7

View file

@ -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");