summaryrefslogtreecommitdiffstats
path: root/src/gss_serialize.c
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2014-07-12 08:23:24 -0400
committerSimo Sorce <simo@redhat.com>2014-07-12 08:23:24 -0400
commit43e49676f7bdf88aa9e935d91c6c4b8dd5ac5b9a (patch)
tree2b5b5a7be6a3320d0ba39c385f0897ebcfa314b6 /src/gss_serialize.c
parent3ed1be459d9cec2d07a06e3960f26815ce22b5a3 (diff)
downloadgss-ntlmssp-43e49676f7bdf88aa9e935d91c6c4b8dd5ac5b9a.tar.gz
gss-ntlmssp-43e49676f7bdf88aa9e935d91c6c4b8dd5ac5b9a.tar.xz
gss-ntlmssp-43e49676f7bdf88aa9e935d91c6c4b8dd5ac5b9a.zip
Cast to (char *) not (void *) to do pointer math
Diffstat (limited to 'src/gss_serialize.c')
-rw-r--r--src/gss_serialize.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gss_serialize.c b/src/gss_serialize.c
index 6b137ce..ef35dd4 100644
--- a/src/gss_serialize.c
+++ b/src/gss_serialize.c
@@ -273,7 +273,7 @@ uint32_t gssntlm_export_sec_context(uint32_t *minor_status,
return GSS_S_FAILURE;
}
ectx = (struct export_ctx *)state.exp_struct;
- state.exp_data = (void *)ectx->data - (void *)ectx;
+ state.exp_data = (char *)ectx->data - (char *)ectx;
state.exp_len = state.exp_data;
state.exp_ptr = 0;
@@ -592,7 +592,7 @@ uint32_t gssntlm_import_sec_context(uint32_t *minor_status,
state.exp_struct = interprocess_token->value;
state.exp_len = interprocess_token->length;
ectx = (struct export_ctx *)state.exp_struct;
- state.exp_data = (void *)ectx->data - (void *)ectx;
+ state.exp_data = (char *)ectx->data - (char *)ectx;
state.exp_ptr = 0;
if (ectx->version != le16toh(1)) {
@@ -769,7 +769,7 @@ uint32_t gssntlm_export_cred(uint32_t *minor_status,
return GSS_S_FAILURE;
}
ecred = (struct export_cred *)state.exp_struct;
- state.exp_data = (void *)ecred->data - (void *)ecred;
+ state.exp_data = (char *)ecred->data - (char *)ecred;
state.exp_len = state.exp_data;
state.exp_ptr = 0;
@@ -857,7 +857,7 @@ uint32_t gssntlm_import_cred(uint32_t *minor_status,
state.exp_struct = token->value;
state.exp_len = token->length;
ecred = (struct export_cred *)state.exp_struct;
- state.exp_data = (void *)ecred->data - (void *)ecred;
+ state.exp_data = (char *)ecred->data - (char *)ecred;
state.exp_ptr = 0;
if (ecred->version != le16toh(1)) {