Adjust type of 'stable' in krb5_register_serializer to reduce warnings
authorKen Raeburn <raeburn@mit.edu>
Sun, 25 Mar 2007 23:10:15 +0000 (23:10 +0000)
committerKen Raeburn <raeburn@mit.edu>
Sun, 25 Mar 2007 23:10:15 +0000 (23:10 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19283 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/serialize.c

index 9cbcef78d97231981735dec8d850f651d9d3866d..d3f52581232acdd20359943693c40c74ebd921eb 100644 (file)
@@ -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));