Use prototypes if the compiler understands them.

This commit is contained in:
Jesse Thilo
1998-12-30 05:27:11 +00:00
parent 4be07551f5
commit d2729d44ab
20 changed files with 340 additions and 339 deletions

View File

@@ -29,13 +29,15 @@ extern char *calloc ();
extern char *realloc ();
#endif
extern void done ();
char *xmalloc PARAMS((register unsigned));
char *xrealloc PARAMS((register char *, register unsigned));
extern void done PARAMS((int));
extern char *program_name;
char *
xmalloc (n)
register unsigned n;
xmalloc (register unsigned n)
{
register char *block;
@@ -53,9 +55,7 @@ xmalloc (n)
}
char *
xrealloc (block, n)
register char *block;
register unsigned n;
xrealloc (register char *block, register unsigned n)
{
/* Avoid uncertainty about what an arg of 0 will do. */
if (n == 0)