diff options
| author | Warner Losh <imp@FreeBSD.org> | 1998-09-16 04:17:47 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 1998-09-16 04:17:47 +0000 |
| commit | e8420087b0ae4a2d0611cd2f6413d150cfc83554 (patch) | |
| tree | 69de0b126d131ecd617d41b6eba03770319d92e3 /lib/libss | |
| parent | e9363917832d4d492df8463833be0cd952076fa8 (diff) | |
Notes
Diffstat (limited to 'lib/libss')
| -rw-r--r-- | lib/libss/help.c | 2 | ||||
| -rw-r--r-- | lib/libss/invocation.c | 2 | ||||
| -rw-r--r-- | lib/libss/parse.c | 2 | ||||
| -rw-r--r-- | lib/libss/request_tbl.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/lib/libss/help.c b/lib/libss/help.c index 48aece4300285..078224d6a6649 100644 --- a/lib/libss/help.c +++ b/lib/libss/help.c @@ -111,7 +111,7 @@ void ss_add_info_dir(sci_idx, info_dir, code_ptr) dirs = info->info_dirs; for (n_dirs = 0; dirs[n_dirs] != (char *)NULL; n_dirs++) ; /* get number of non-NULL dir entries */ - dirs = (char **)realloc((char *)dirs, + dirs = (char **)reallocf((char *)dirs, (unsigned)(n_dirs + 2)*sizeof(char *)); if (dirs == (char **)NULL) { info->info_dirs = (char **)NULL; diff --git a/lib/libss/invocation.c b/lib/libss/invocation.c index 513ec7d1d128c..f56c01a8cb7b7 100644 --- a/lib/libss/invocation.c +++ b/lib/libss/invocation.c @@ -37,7 +37,7 @@ int ss_create_invocation(subsystem_name, version_string, info_ptr, for (sci_idx = 1; table[sci_idx] != (ss_data *)NULL; sci_idx++) ; - table = (ss_data **) realloc((char *)table, + table = (ss_data **) reallocf((char *)table, ((unsigned)sci_idx+2)*size); table[sci_idx+1] = (ss_data *) NULL; table[sci_idx] = new_table; diff --git a/lib/libss/parse.c b/lib/libss/parse.c index 8a61ea8a8d8fd..878677e0ea808 100644 --- a/lib/libss/parse.c +++ b/lib/libss/parse.c @@ -31,7 +31,7 @@ enum parse_mode { WHITESPACE, TOKEN, QUOTED_STRING }; * Series of pointers to parsed tokens. */ -#define NEW_ARGV(old,n) (char **)realloc((char *)old,\ +#define NEW_ARGV(old,n) (char **)reallocf((char *)old,\ (unsigned)(n+2)*sizeof(char*)) char **ss_parse (sci_idx, line_ptr, argc_ptr) diff --git a/lib/libss/request_tbl.c b/lib/libss/request_tbl.c index b8600647d70df..1564689b65150 100644 --- a/lib/libss/request_tbl.c +++ b/lib/libss/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((char *)info->rqt_tables, + info->rqt_tables = (ssrt **)reallocf((char *)info->rqt_tables, (unsigned)size*sizeof(ssrt)); if (info->rqt_tables == (ssrt **)NULL) { *code_ptr = errno; |
