]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
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 801f5ad18ba8c4eb0855af033ce075ed5899d255..e948fc76e2e0d963bb69fbdf1ff383b4da57c769 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 14a16abda0b588ede213a2a07c2ed072b4c478bf..29587e5c3f2b1cf35dfec15aa41d54980eaef387 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 7c9bb458d6865e13ea5287d8fc45182797909823..66692e43edfae314d01b1fe706f14af0dc07cb8a 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 54d6a6102e89d481af6190628e6494cb7f63d921..c65fadb386f323f2e6c72b72fa754aaf71ea0844 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 14fe478e3209406db446ab9c9121c3400cd84e0c..e9535d4538b5255ab02dccf061c16c14608eccc8 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 e4eef6f22a9903b663912379ff40b9ed60bee2ae..d09a2f7cd9fb84818180c56420e245276390fbf2 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 dd00370ffb0181b63de60a4782b288e01beda612..45be14f921f7e31d41de7966bbc7428eb06c9c89 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 71a10d0ca34731b280b1affddaf32a06681e7329..2194998d5e629cec2af1a4ac8f0e6db29b4056d9 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 927d147dcb783f0a3aaf1bfb05e37bb0522134fb..2ccd10edcb28a068af8085635f0d7198c762ab4b 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 bf9ffbe6f3686bb01cd44aee0f4090958423955d..7938325b869fbdaf0e30ad7ec7236bc92c47fee1 100644 (file)
@@ -118,7 +118,6 @@ gid_t getgid ();
 #endif
 
 char *base_name ();
-char *xmalloc ();
 int safe_read ();
 int full_write ();
 int isdir ();
index 179128a5b551f012668b07ce54e865b5bbbc68eb..12dab5e24775ecf2181f0c61d92dfc31c1d353f3 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 4734f8417f598a6ffdb427a2e83ff49a702a5936..40231bdfd2f399fbd10ab2748eae2fde589ddbad 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.  */