summaryrefslogtreecommitdiffstats
path: root/src/lib/krb5/krb/copy_key.c
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@mit.edu>2006-04-29 06:59:23 +0000
committerKen Raeburn <raeburn@mit.edu>2006-04-29 06:59:23 +0000
commita48dbb677a47fdd0241cfaab7a602f198061486f (patch)
tree2e24e68bb82ab54528502b1dc62eeccf675755be /src/lib/krb5/krb/copy_key.c
parent596bfd4c2645cd9e2a652ea8def569c69c55da66 (diff)
downloadkrb5-a48dbb677a47fdd0241cfaab7a602f198061486f.tar.gz
krb5-a48dbb677a47fdd0241cfaab7a602f198061486f.tar.xz
krb5-a48dbb677a47fdd0241cfaab7a602f198061486f.zip
Don't test HAVE_C_STRUCTURE_ASSIGNMENT.
Instead, just assume we do have a working C compiler. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17969 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/lib/krb5/krb/copy_key.c')
-rw-r--r--src/lib/krb5/krb/copy_key.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/lib/krb5/krb/copy_key.c b/src/lib/krb5/krb/copy_key.c
index d2640ed58..1bb04c199 100644
--- a/src/lib/krb5/krb/copy_key.c
+++ b/src/lib/krb5/krb/copy_key.c
@@ -39,11 +39,7 @@ krb5_copy_keyblock(krb5_context context, const krb5_keyblock *from, krb5_keybloc
if (!(new_key = (krb5_keyblock *) malloc(sizeof(krb5_keyblock))))
return ENOMEM;
-#ifdef HAVE_C_STRUCTURE_ASSIGNMENT
*new_key = *from;
-#else
- memcpy(new_key, from, sizeof(krb5_keyblock));
-#endif
if (!(new_key->contents = (krb5_octet *)malloc(new_key->length))) {
krb5_xfree(new_key);
return(ENOMEM);