Args to setsockopt changed. Now matches what HP wants.

This commit is contained in:
Marty Kraimer
1994-09-02 13:39:53 +00:00
parent 714eb851ee
commit be255e42e2

View File

@@ -213,7 +213,7 @@ char *message; /* O message from server (dimension of 80 assumed) */
*pServerSock = socket(AF_INET, SOCK_STREAM, 0);
if (*pServerSock < 0)
return -1;
if (setsockopt(*pServerSock, SOL_SOCKET, SO_REUSEADDR, NULL, 0) != 0) {
if (setsockopt(*pServerSock, SOL_SOCKET, SO_REUSEADDR, &optval, sizeof(optval)) != 0) {
close(*pServerSock);
*pServerSock = -1;
return -1;