svn rev #21874: trunk/src/lib/gssapi/krb5/
raeburn@MIT.EDU
raeburn at MIT.EDU
Mon Feb 2 17:28:35 EST 2009
http://src.mit.edu/fisheye/changelog/krb5/?cs=21874
Commit By: raeburn
Log Message:
TWRITE_STR casts second argument; don't add redundant casting.
Changed Files:
U trunk/src/lib/gssapi/krb5/init_sec_context.c
Modified: trunk/src/lib/gssapi/krb5/init_sec_context.c
===================================================================
--- trunk/src/lib/gssapi/krb5/init_sec_context.c 2009-02-02 21:55:13 UTC (rev 21873)
+++ trunk/src/lib/gssapi/krb5/init_sec_context.c 2009-02-02 22:28:34 UTC (rev 21874)
@@ -252,7 +252,7 @@
ptr = (unsigned char *)data->checksum_data.data;
TWRITE_INT(ptr, data->md5.length, 0);
- TWRITE_STR(ptr, (unsigned char *) data->md5.contents, data->md5.length);
+ TWRITE_STR(ptr, data->md5.contents, data->md5.length);
TWRITE_INT(ptr, data->ctx->gss_flags, 0);
/* done with this, free it */
@@ -261,7 +261,7 @@
if (credmsg.data) {
TWRITE_INT16(ptr, KRB5_GSS_FOR_CREDS_OPTION, 0);
TWRITE_INT16(ptr, credmsg.length, 0);
- TWRITE_STR(ptr, (unsigned char *) credmsg.data, credmsg.length);
+ TWRITE_STR(ptr, credmsg.data, credmsg.length);
/* free credmsg data */
krb5_free_data_contents(context, &credmsg);
@@ -365,7 +365,7 @@
g_make_token_header(mech_type, ap_req.length,
&ptr, KG_TOK_CTX_AP_REQ);
- TWRITE_STR(ptr, (unsigned char *) ap_req.data, ap_req.length);
+ TWRITE_STR(ptr, ap_req.data, ap_req.length);
/* pass it back */
More information about the cvs-krb5
mailing list