summaryrefslogtreecommitdiffstats
path: root/src/lib/kadm5/clnt/client_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/kadm5/clnt/client_init.c')
-rw-r--r--src/lib/kadm5/clnt/client_init.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/kadm5/clnt/client_init.c b/src/lib/kadm5/clnt/client_init.c
index 82bec3c4ef..4395453b7b 100644
--- a/src/lib/kadm5/clnt/client_init.c
+++ b/src/lib/kadm5/clnt/client_init.c
@@ -230,7 +230,7 @@ static kadm5_ret_t _kadm5_init_any(char *client_name,
* of params_in. So use that realm, make params_in contain an
* empty mask, and behave like version 2.
*/
- memset((char *) &params_local, 0, sizeof(params_local));
+ memset(&params_local, 0, sizeof(params_local));
if (api_version == KADM5_API_VERSION_1) {
realm = params_local.realm = (char *) params_in;
if (params_in)
@@ -319,8 +319,7 @@ static kadm5_ret_t _kadm5_init_any(char *client_name,
memset(&addr, 0, sizeof(addr));
addr.sin_family = hp->h_addrtype;
- (void) memcpy((char *) &addr.sin_addr, (char *) hp->h_addr,
- sizeof(addr.sin_addr));
+ (void) memcpy(&addr.sin_addr, hp->h_addr, sizeof(addr.sin_addr));
if (iprop_enable)
addr.sin_port = htons((u_short) handle->params.iprop_port);
else