From: Ken Raeburn Date: Thu, 21 Jun 2001 03:09:54 +0000 (+0000) Subject: delete some unnecessary casts X-Git-Tag: krb5-1.3-alpha1~1353 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4665ab8e8eabc39ae3f9736d58c9aa06366483fe;p=krb5.git delete some unnecessary casts git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13425 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/util/ss/ChangeLog b/src/util/ss/ChangeLog index 54848b691..7bfd2f070 100644 --- a/src/util/ss/ChangeLog +++ b/src/util/ss/ChangeLog @@ -1,3 +1,11 @@ +2001-06-20 Ken Raeburn + + * 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 * request_tbl.c (ss_add_request_table): Do not cast argument to diff --git a/src/util/ss/invocation.c b/src/util/ss/invocation.c index c7cef4877..5e1a2565b 100644 --- a/src/util/ss/invocation.c +++ b/src/util/ss/invocation.c @@ -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); diff --git a/src/util/ss/request_tbl.c b/src/util/ss/request_tbl.c index a9e751e31..46eb3a0ad 100644 --- a/src/util/ss/request_tbl.c +++ b/src/util/ss/request_tbl.c @@ -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;