unsigned char casts for is*, casts for socket functi, add headers

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10646 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
2001-09-03 05:54:18 +00:00
parent 2bd2af429a
commit 897f0b1f93
7 changed files with 10 additions and 8 deletions

View File

@@ -536,10 +536,11 @@ proto (int s, int errsock,
if (sock_debug) {
int one = 1;
if (setsockopt(s, SOL_SOCKET, SO_DEBUG, &one, sizeof(one)) < 0)
if (setsockopt(s, SOL_SOCKET, SO_DEBUG, (void *)&one, sizeof(one)) < 0)
warn("setsockopt remote");
if (errsock2 != -1 &&
setsockopt(errsock2, SOL_SOCKET, SO_DEBUG, &one, sizeof(one)) < 0)
setsockopt(errsock2, SOL_SOCKET, SO_DEBUG,
(void *)&one, sizeof(one)) < 0)
warn("setsockopt stderr");
}