From: Stephan Wiesand Date: Fri, 14 Mar 2014 13:44:54 +0000 (+0100) Subject: bos: Change the remaining use of ktc_to_charptr to char cast X-Git-Tag: upstream/1.6.10_pre1^2~121 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=5382e9f9adadd0851615e697876134e3a2c8e21e;p=packages%2Fo%2Fopenafs.git bos: Change the remaining use of ktc_to_charptr to char cast This is a 1.6 only change to complement the preceding commit. On the master branch, this modification is part of commit a9b8fd81bf14c04d33113e9e4df4e1ca7573e49d which otherwise comprises changes not foreseen to be applied to 1.6. Change-Id: I44678c2fb15f136d70f2d38a3996ad3d7d0455d5 Reviewed-on: http://gerrit.openafs.org/10891 Reviewed-by: D Brashear Tested-by: BuildBot Reviewed-by: Benjamin Kaduk Reviewed-by: Andrew Deason Reviewed-by: Stephan Wiesand --- diff --git a/src/bozo/bos_util.c b/src/bozo/bos_util.c index 391d17fe0..6879c9b5f 100644 --- a/src/bozo/bos_util.c +++ b/src/bozo/bos_util.c @@ -125,7 +125,7 @@ main(int argc, char **argv) exit(1); } des_string_to_key(buf, ktc_to_cblockptr(&tkey)); - code = afsconf_AddKey(tdir, kvno, ktc_to_charptr(&tkey), 0); + code = afsconf_AddKey(tdir, kvno, (char *)(&tkey), 0); if (code) { printf("bos_util: failed to set key, code %d.\n", code); exit(1);