delete some unnecessary casts
authorKen Raeburn <raeburn@mit.edu>
Thu, 21 Jun 2001 03:09:54 +0000 (03:09 +0000)
committerKen Raeburn <raeburn@mit.edu>
Thu, 21 Jun 2001 03:09:54 +0000 (03:09 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13425 dc483132-0cff-0310-8789-dd5450dbe970

src/util/ss/ChangeLog
src/util/ss/invocation.c
src/util/ss/request_tbl.c

index 54848b691cedd60a96bb41ae3e56bc6b999cfcae..7bfd2f070d86c36dd49c3390e315bb3921c17e42 100644 (file)
@@ -1,3 +1,11 @@
+2001-06-20  Ken Raeburn  <raeburn@mit.edu>
+
+       * request_tbl.c (ss_add_request_table): Delete unnecessary cast in
+       size arg to realloc.
+
+       * invocation.c (ss_delete_invocation): Delete unnecessary cast in
+       arg to free.
+
 2001-06-07  Ezra Peisach  <epeisach@mit.edu>
 
        * request_tbl.c (ss_add_request_table): Do not cast argument to
index c7cef4877b0b32f8ca667ccc2dc09d8a0bafaf33..5e1a2565bedcb4c12ea3d1e3a0b2b96a282006ce 100644 (file)
@@ -70,7 +70,7 @@ ss_delete_invocation(sci_idx)
 
        t = ss_info(sci_idx);
        free(t->prompt);
-       free((char *)t->rqt_tables);
+       free(t->rqt_tables);
        while(t->info_dirs[0] != (char *)NULL)
                ss_delete_info_dir(sci_idx, t->info_dirs[0], &ignored_code);
        free((char *)t->info_dirs);
index a9e751e31e1b031fa7f837463b60996a3605825c..46eb3a0ad7e795f2541dc755d0b6ecd0af998dfb 100644 (file)
@@ -25,7 +25,7 @@ ss_add_request_table(sci_idx, rqtbl_ptr, position, code_ptr)
        /* size == C subscript of NULL == #elements */
        size += 2;              /* new element, and NULL */
        info->rqt_tables = (ssrt **)realloc(info->rqt_tables,
-                                           (unsigned)size*sizeof(ssrt));
+                                           size*sizeof(ssrt));
        if (info->rqt_tables == (ssrt **)NULL) {
                *code_ptr = errno;
                return;