cast argument 1 to gethostbyaddr' to
const char *'
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3408 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -269,7 +269,9 @@ pop_init(POP *p,int argcount,char **argmessage)
|
||||
p->ipport = ntohs(cs.sin_port);
|
||||
|
||||
/* Get the canonical name of the host to whom I am speaking */
|
||||
ch = gethostbyaddr((char *)&cs.sin_addr, sizeof(cs.sin_addr), AF_INET);
|
||||
ch = gethostbyaddr((const char *)&cs.sin_addr,
|
||||
sizeof(cs.sin_addr),
|
||||
AF_INET);
|
||||
if (ch == NULL){
|
||||
pop_log(p,POP_PRIORITY,
|
||||
"Unable to get canonical name of client, err = %d",errno);
|
||||
|
@@ -55,7 +55,7 @@ krb5_sock_to_principal (krb5_context context,
|
||||
if (getsockname (sock, (struct sockaddr *)&addr, &len) < 0)
|
||||
return errno;
|
||||
|
||||
hostent = gethostbyaddr (&addr.sin_addr,
|
||||
hostent = gethostbyaddr ((const char *)&addr.sin_addr,
|
||||
sizeof(addr.sin_addr),
|
||||
addr.sin_family);
|
||||
if (hostent == NULL)
|
||||
|
Reference in New Issue
Block a user