less warnings

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@894 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1996-10-26 21:41:16 +00:00
parent 3e317bb818
commit aaafb2bf9c
30 changed files with 149 additions and 82 deletions

View File

@@ -183,7 +183,8 @@ get_xsockets (int *unix_socket, int *tcp_socket)
return -1;
}
#ifdef TCP_NODELAY
setsockopt (tcpfd, IPPROTO_TCP, TCP_NODELAY, &one, sizeof(one));
setsockopt (tcpfd, IPPROTO_TCP, TCP_NODELAY, (void *)&one,
sizeof(one));
#endif
memset (&tcpaddr, 0, sizeof(tcpaddr));
tcpaddr.sin_family = AF_INET;