diff options
author | Ken Raeburn <raeburn@mit.edu> | 2009-02-02 23:41:40 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@mit.edu> | 2009-02-02 23:41:40 +0000 |
commit | d431a41a7a0f44ff2d0e5c69fb8a6901f72d0b55 (patch) | |
tree | e4f6373671367a5afb16e2cc1e4bbbf44ab015b7 /src/lib/kadm5/srv | |
parent | 2fbe8a9edf3b69e68c226a79dad0747f19decd0b (diff) | |
download | krb5-d431a41a7a0f44ff2d0e5c69fb8a6901f72d0b55.zip krb5-d431a41a7a0f44ff2d0e5c69fb8a6901f72d0b55.tar.gz krb5-d431a41a7a0f44ff2d0e5c69fb8a6901f72d0b55.tar.bz2 |
Remove unnecessary pointer casts in args to free,memcpy,memset,memchr except unicode, windows code
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21875 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/kadm5/srv')
-rw-r--r-- | src/lib/kadm5/srv/server_acl.c | 2 | ||||
-rw-r--r-- | src/lib/kadm5/srv/server_init.c | 2 | ||||
-rw-r--r-- | src/lib/kadm5/srv/svr_principal.c | 8 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/kadm5/srv/server_acl.c b/src/lib/kadm5/srv/server_acl.c index 9471d0a..88a517a 100644 --- a/src/lib/kadm5/srv/server_acl.c +++ b/src/lib/kadm5/srv/server_acl.c @@ -607,7 +607,7 @@ kadm5int_acl_find_entry(kcontext, principal, dest_princ) wildstate_t state; DPRINT(DEBUG_CALLS, acl_debug_level, ("* kadm5int_acl_find_entry()\n")); - memset((char *)&state, 0, sizeof state); + memset(&state, 0, sizeof state); for (entry=acl_list_head; entry; entry = entry->ae_next) { if (entry->ae_name_bad) continue; diff --git a/src/lib/kadm5/srv/server_init.c b/src/lib/kadm5/srv/server_init.c index febf79b..77a83ba 100644 --- a/src/lib/kadm5/srv/server_init.c +++ b/src/lib/kadm5/srv/server_init.c @@ -210,7 +210,7 @@ kadm5_ret_t kadm5_init(char *client_name, char *pass, * of params_in. So use that realm, make params_in contain an * empty mask, and behave like version 2. */ - memset((char *) ¶ms_local, 0, sizeof(params_local)); + memset(¶ms_local, 0, sizeof(params_local)); if (api_version == KADM5_API_VERSION_1) { params_local.realm = (char *) params_in; if (params_in) diff --git a/src/lib/kadm5/srv/svr_principal.c b/src/lib/kadm5/srv/svr_principal.c index 2071437..c44463b 100644 --- a/src/lib/kadm5/srv/svr_principal.c +++ b/src/lib/kadm5/srv/svr_principal.c @@ -764,7 +764,7 @@ kadm5_get_principal(void *server_handle, krb5_principal principal, mask = in_mask; } - memset((char *) entry, 0, sizeof(*entry)); + memset(entry, 0, sizeof(*entry)); if (principal == NULL) return EINVAL; @@ -1184,7 +1184,7 @@ static kadm5_ret_t add_to_history(krb5_context context, } free(histp->key_data); } - free((void *)adb->old_keys); + free(adb->old_keys); adb->old_keys = tmp; nkeys = adb->old_key_len = nhist - 1; knext = adb->old_key_next = 0; @@ -2155,7 +2155,7 @@ static int decrypt_key_data(krb5_context context, krb5_keyblock *mkey, keys = (krb5_keyblock *) malloc(n_key_data*sizeof(krb5_keyblock)); if (keys == NULL) return ENOMEM; - memset((char *) keys, 0, n_key_data*sizeof(krb5_keyblock)); + memset(keys, 0, n_key_data*sizeof(krb5_keyblock)); for (i = 0; i < n_key_data; i++) { ret = krb5_dbekd_decrypt_key_data(context, mkey, @@ -2169,7 +2169,7 @@ static int decrypt_key_data(krb5_context context, krb5_keyblock *mkey, } } - memset((char *) keys, 0, n_key_data*sizeof(krb5_keyblock)); + memset(keys, 0, n_key_data*sizeof(krb5_keyblock)); free(keys); return ret; } |