Remove old-style xmalloc and xrealloc decls.
authorJim Meyering <jim@meyering.net>
Sat, 25 Oct 1997 22:03:55 +0000 (22:03 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 25 Oct 1997 22:03:55 +0000 (22:03 +0000)
12 files changed:
src/chgrp.c
src/chmod.c
src/chown.c
src/copy.c
src/cp-hash.c
src/cp.c
src/dd.c
src/df.c
src/du.c
src/install.c
src/ls.c
src/rm.c

index 801f5ad..e948fc7 100644 (file)
@@ -67,8 +67,6 @@ enum Change_status
 };
 
 char *group_member ();
-char *xmalloc ();
-char *xrealloc ();
 
 static int change_dir_group __P ((const char *dir, int group,
                                  const struct stat *statp));
index 14a16ab..29587e5 100644 (file)
@@ -36,8 +36,6 @@ enum Change_status
 
 void mode_string ();
 void strip_trailing_slashes ();
-char *xmalloc ();
-char *xrealloc ();
 
 static int change_dir_mode __P ((const char *dir,
                                 const struct mode_change *changes,
index 7c9bb45..66692e4 100644 (file)
@@ -57,8 +57,6 @@ struct group *getgrgid ();
 
 char *parse_user_spec ();
 void strip_trailing_slashes ();
-char *xmalloc ();
-char *xrealloc ();
 
 enum Change_status
 {
index 54d6a61..c65fadb 100644 (file)
@@ -36,7 +36,6 @@ struct dir_list
 
 int full_write ();
 int euidaccess ();
-char *xmalloc ();
 int yesno ();
 
 static int copy_internal __P ((const char *src_path, const char *dst_path,
index 14fe478..e9535d4 100644 (file)
@@ -1,5 +1,5 @@
 /* cp-hash.c  -- file copying (hash search routines)
-   Copyright (C) 89, 90, 91, 95, 1996 Free Software Foundation.
+   Copyright (C) 89, 90, 91, 95, 1996, 1997 Free Software Foundation.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -41,9 +41,6 @@ struct htab
   struct entry *hash[1];       /* Vector of pointers in `entry_tab'.  */
 };
 
-char *xmalloc ();
-char *xrealloc ();
-
 struct htab *htab;
 char new_file;
 
index e4eef6f..d09a2f7 100644 (file)
--- a/src/cp.c
+++ b/src/cp.c
@@ -58,7 +58,6 @@ char *base_name ();
 char *dirname ();
 enum backup_type get_version ();
 void strip_trailing_slashes ();
-char *xmalloc ();
 char *xstrdup ();
 
 /* Initial number of entries in each hash table entry's table of inodes.  */
index dd00370..45be14f 100644 (file)
--- a/src/dd.c
+++ b/src/dd.c
@@ -93,7 +93,6 @@
 /* Use separate input and output buffers, and combine partial input blocks. */
 #define C_TWOBUFS 04000
 
-char *xmalloc ();
 int safe_read ();
 int full_write ();
 
index 71a10d0..2194998 100644 (file)
--- a/src/df.c
+++ b/src/df.c
@@ -32,7 +32,6 @@
 
 char *dirname ();
 void strip_trailing_slashes ();
-char *xmalloc ();
 char *xstrdup ();
 char *xgetcwd ();
 
index 927d147..2ccd10e 100644 (file)
--- a/src/du.c
+++ b/src/du.c
@@ -100,9 +100,6 @@ typedef struct
 int stat ();
 int lstat ();
 
-char *xmalloc ();
-char *xrealloc ();
-
 static int hash_insert __P ((ino_t ino, dev_t dev));
 static int hash_insert2 __P ((struct htab *_htab, ino_t ino, dev_t dev));
 static long count_entry __P ((const char *ent, int top, dev_t last_dev,
index bf9ffbe..7938325 100644 (file)
@@ -118,7 +118,6 @@ gid_t getgid ();
 #endif
 
 char *base_name ();
-char *xmalloc ();
 int safe_read ();
 int full_write ();
 int isdir ();
index 179128a..12dab5e 100644 (file)
--- a/src/ls.c
+++ b/src/ls.c
@@ -148,8 +148,6 @@ char *getgroup ();
 char *getuser ();
 void strip_trailing_slashes ();
 char *xstrdup ();
-char *xmalloc ();
-char *xrealloc ();
 void invalid_arg ();
 
 static char *make_link_path __P ((const char *path, const char *linkname));
@@ -1641,7 +1639,8 @@ gobble_file (const char *name, int explicit_arg, const char *dirname)
   if (files_index == nfiles)
     {
       nfiles *= 2;
-      files = (struct fileinfo *) xrealloc (files, sizeof (*files) * nfiles);
+      files = (struct fileinfo *) xrealloc ((char *) files,
+                                           sizeof (*files) * nfiles);
     }
 
   files[files_index].linkname = 0;
index 4734f84..40231bd 100644 (file)
--- a/src/rm.c
+++ b/src/rm.c
@@ -127,7 +127,6 @@ struct File_spec
 char *base_name ();
 int euidaccess ();
 void strip_trailing_slashes ();
-char *xmalloc ();
 int yesno ();
 
 /* Forward dcl for recursively called function.  */