diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/util/ss/ChangeLog | 8 | ||||
-rw-r--r-- | src/util/ss/invocation.c | 2 | ||||
-rw-r--r-- | src/util/ss/request_tbl.c | 2 |
3 files changed, 10 insertions, 2 deletions
diff --git a/src/util/ss/ChangeLog b/src/util/ss/ChangeLog index 54848b691c..7bfd2f070d 100644 --- a/src/util/ss/ChangeLog +++ b/src/util/ss/ChangeLog @@ -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 diff --git a/src/util/ss/invocation.c b/src/util/ss/invocation.c index c7cef4877b..5e1a2565be 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 a9e751e31e..46eb3a0ad7 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; |