From: Ken Raeburn Date: Sun, 25 Mar 2007 23:10:15 +0000 (+0000) Subject: Adjust type of 'stable' in krb5_register_serializer to reduce warnings X-Git-Tag: krb5-1.7-alpha1~1219 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=170043bbd46d34f5520cd62f58ec10f8a2cbdfd0;p=krb5.git Adjust type of 'stable' in krb5_register_serializer to reduce warnings git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19283 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/krb/serialize.c b/src/lib/krb5/krb/serialize.c index 9cbcef78d..d3f525812 100644 --- a/src/lib/krb5/krb/serialize.c +++ b/src/lib/krb5/krb/serialize.c @@ -58,7 +58,7 @@ krb5_error_code krb5_register_serializer(krb5_context kcontext, const krb5_ser_entry *entry) { krb5_error_code kret; - krb5_ser_handle stable; + krb5_ser_entry * stable; kret = 0; /* See if it's already there, if so, we're good to go. */ @@ -66,12 +66,12 @@ krb5_register_serializer(krb5_context kcontext, const krb5_ser_entry *entry) /* * Can't find our type. Create a new entry. */ - if ((stable = (krb5_ser_handle) malloc(sizeof(krb5_ser_entry) * - (kcontext->ser_ctx_count+1)))) { + if ((stable = (krb5_ser_entry *) malloc(sizeof(krb5_ser_entry) * + (kcontext->ser_ctx_count+1)))) { /* Copy in old table */ if (kcontext->ser_ctx_count) memcpy(stable, kcontext->ser_ctx, - sizeof(krb5_ser_entry) * kcontext->ser_ctx_count); + sizeof(krb5_ser_entry) * kcontext->ser_ctx_count); /* Copy in new entry */ memcpy(&stable[kcontext->ser_ctx_count], entry, sizeof(krb5_ser_entry));