Ticket #683: patch_ample.c
File patch_ample.c, 442 bytes (added by ole_guldberg@…, 21 years ago) |
---|
Line | |
---|---|
1 | --- src/ample.c.org Sun Dec 8 15:20:15 2002 |
2 | +++ src/ample.c Tue Jul 8 16:37:53 2003 |
3 | @@ -92,7 +92,7 @@ |
4 | |
5 | setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt)); |
6 | address.sin_family = AF_INET; |
7 | - address.sin_port = htons((uint16_t)gconf.port); |
8 | + address.sin_port = htons((u_int16_t)gconf.port); |
9 | memset(&(address.sin_addr), 0, sizeof(address.sin_addr)); |
10 | |
11 | if(bind(sock, (struct sockaddr *)&address, sizeof(struct sockaddr_in))) |