From 4905d2df948cbf1daa103455a565646cd4a3fd28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Fri, 17 Jun 2005 04:20:11 +0000 Subject: [PATCH] unconst argumen to connect, unconst argument to krb5_store (XXX this should be fixed, krb5_store doesn't need to modify its argument) git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15465 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/kcm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/krb5/kcm.c b/lib/krb5/kcm.c index 1bd9416dd..832ee4f40 100644 --- a/lib/krb5/kcm.c +++ b/lib/krb5/kcm.c @@ -106,7 +106,7 @@ try_unix_socket(krb5_context context, const krb5_kcmcache *k, if (fd < 0) return KRB5_CC_IO; - if (connect(fd, (struct sockaddr *)&k->path, sizeof(k->path)) != 0) { + if (connect(fd, rk_UNCONST(&k->path), sizeof(k->path)) != 0) { close(fd); return KRB5_CC_IO; } @@ -521,7 +521,7 @@ kcm_retrieve(krb5_context context, return ret; } - ret = krb5_store_creds_tag(request, (krb5_creds *)mcred); + ret = krb5_store_creds_tag(request, rk_UNCONST(mcred)); if (ret) { krb5_storage_free(request); return ret;