TWRITE_STR casts second argument; don't add redundant casting
authorKen Raeburn <raeburn@mit.edu>
Mon, 2 Feb 2009 22:28:34 +0000 (22:28 +0000)
committerKen Raeburn <raeburn@mit.edu>
Mon, 2 Feb 2009 22:28:34 +0000 (22:28 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21874 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/gssapi/krb5/init_sec_context.c

index 2175e9ecd0e264e9bb83be639f6b3f2cc2259303..f91c7525ee85687608d5e030ab8f9282af15daca 100644 (file)
@@ -252,7 +252,7 @@ make_gss_checksum (krb5_context context, krb5_auth_context auth_context,
     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 @@ make_gss_checksum (krb5_context context, krb5_auth_context auth_context,
     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 @@ make_ap_req_v1(context, ctx, cred, k_cred, chan_bindings, mech_type, token)
         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 */