From 3b9d299052feca87788c79f3ec6e1fa986361284 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Sun, 7 Sep 1997 20:29:50 +0000 Subject: [PATCH] cast argument 1 to `gethostbyaddr' to `const char *' git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3408 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/popper/pop_init.c | 4 +++- lib/krb5/sock_principal.c | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/appl/popper/pop_init.c b/appl/popper/pop_init.c index 6eb621099..cea714caa 100644 --- a/appl/popper/pop_init.c +++ b/appl/popper/pop_init.c @@ -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); diff --git a/lib/krb5/sock_principal.c b/lib/krb5/sock_principal.c index fa7ff16d1..069e122f2 100644 --- a/lib/krb5/sock_principal.c +++ b/lib/krb5/sock_principal.c @@ -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)