diff options
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/tcp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib-src/tcp.c b/lib-src/tcp.c index 6bcaab478ac..5741b52d132 100644 --- a/lib-src/tcp.c +++ b/lib-src/tcp.c | |||
| @@ -122,7 +122,7 @@ main (argc, argv) | |||
| 122 | bzero (&sockin, sizeof (sockin)); | 122 | bzero (&sockin, sizeof (sockin)); |
| 123 | sockin.sin_family = host->h_addrtype; | 123 | sockin.sin_family = host->h_addrtype; |
| 124 | bcopy (host->h_addr, &sockin.sin_addr, host->h_length); | 124 | bcopy (host->h_addr, &sockin.sin_addr, host->h_length); |
| 125 | sockin.sin_port = port; | 125 | sockin.sin_port = htons (port); |
| 126 | if ((server = socket (AF_INET, SOCK_STREAM, 0)) < 0) | 126 | if ((server = socket (AF_INET, SOCK_STREAM, 0)) < 0) |
| 127 | { | 127 | { |
| 128 | perror ("socket"); | 128 | perror ("socket"); |