diff options
author | Jim Meyering <jim@meyering.net> | 1997-10-25 04:41:18 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1997-10-25 04:41:18 +0000 |
commit | b480949713018a34c9746d4ac6c379ff158b684d (patch) | |
tree | 840a02f7a0e7dc71daa48474bb130886a26277f1 /src | |
parent | f4ae4ca4efd62ea4559aba731334565c83cd6b17 (diff) | |
download | coreutils-b480949713018a34c9746d4ac6c379ff158b684d.tar.xz |
Remove old-style xmalloc and xrealloc decls.
(decode_format_string): Cast first arg of xrealloc to char*.
Diffstat (limited to 'src')
-rw-r--r-- | src/od.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -109,9 +109,6 @@ typedef double LONG_DOUBLE; # define LDBL_DIG DBL_DIG #endif -char *xmalloc (); -char *xrealloc (); - enum size_spec { NO_SIZE, @@ -952,8 +949,9 @@ decode_format_string (const char *s) if (n_specs >= n_specs_allocated) { n_specs_allocated = 1 + (3 * n_specs_allocated) / 2; - spec = (struct tspec *) xrealloc (spec, (n_specs_allocated - * sizeof (struct tspec))); + spec = (struct tspec *) xrealloc ((char *) spec, + (n_specs_allocated + * sizeof (struct tspec))); } memcpy ((char *) &spec[n_specs], (char *) &tspec, |