From: Jim Meyering Date: Sat, 25 Oct 1997 04:41:18 +0000 (+0000) Subject: Remove old-style xmalloc and xrealloc decls. X-Git-Tag: TEXTUTILS-1_22c~182 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b480949713018a34c9746d4ac6c379ff158b684d;p=platform%2Fupstream%2Fcoreutils.git Remove old-style xmalloc and xrealloc decls. (decode_format_string): Cast first arg of xrealloc to char*. --- diff --git a/src/od.c b/src/od.c index bf7de17..9170107 100644 --- a/src/od.c +++ b/src/od.c @@ -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,