From b3ab88e9707c43617efb5f85fd90de2f39bce6a6 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 25 Oct 1997 22:03:20 +0000 Subject: [PATCH] Remove old-style xmalloc and xrealloc decls. --- src/date.c | 2 -- src/expr.c | 1 - src/id.c | 3 +-- src/pinky.c | 1 - src/printf.c | 2 -- src/su.c | 2 -- src/tee.c | 1 - src/test.c | 2 -- src/users.c | 2 -- src/who.c | 1 - 10 files changed, 1 insertion(+), 16 deletions(-) diff --git a/src/date.c b/src/date.c index 205ce64..3d88a0e 100644 --- a/src/date.c +++ b/src/date.c @@ -36,8 +36,6 @@ time_t time (); int putenv (); int stime (); -char *xrealloc (); -char *xmalloc (); char *xstrdup (); time_t posixtime (); diff --git a/src/expr.c b/src/expr.c index 2a9395a..995d28e 100644 --- a/src/expr.c +++ b/src/expr.c @@ -71,7 +71,6 @@ static char **args; char *program_name; char *xstrdup (); -char *xmalloc (); static VALUE *docolon __P ((VALUE *sv, VALUE *pv)); static VALUE *eval __P ((void)); diff --git a/src/id.c b/src/id.c index 1b9a19d..08a236c 100644 --- a/src/id.c +++ b/src/id.c @@ -1,5 +1,5 @@ /* id -- print real and effective UIDs and GIDs - Copyright (C) 1989-1995, 1996 Free Software Foundation, Inc. + Copyright (C) 1989-1995, 1996, 1997 Free Software Foundation, Inc. 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 @@ -42,7 +42,6 @@ gid_t getegid (); # include #endif /* not _POSIX_VERSION */ -char *xmalloc (); int getugroups (); static void print_user __P ((int uid)); diff --git a/src/pinky.c b/src/pinky.c index 491e856..db230bf 100644 --- a/src/pinky.c +++ b/src/pinky.c @@ -35,7 +35,6 @@ int gethostname (); char *ttyname (); -char *xmalloc (); /* The name this program was run with. */ const char *program_name; diff --git a/src/printf.c b/src/printf.c index 2ffedd0..c86108c 100644 --- a/src/printf.c +++ b/src/printf.c @@ -63,8 +63,6 @@ unsigned long int strtoul (); (c) >= 'A' && (c) <= 'F' ? (c) - 'A' + 10 : (c) - '0') #define octtobin(c) ((c) - '0') -char *xmalloc (); - /* The value to return to the calling program. */ static int exit_status; diff --git a/src/su.c b/src/su.c index c011094..108d062 100644 --- a/src/su.c +++ b/src/su.c @@ -147,8 +147,6 @@ void endusershell (); void setusershell (); char *base_name (); -char *xmalloc (); -char *xrealloc (); char *xstrdup (); extern char **environ; diff --git a/src/tee.c b/src/tee.c index a3de574..38fed6e 100644 --- a/src/tee.c +++ b/src/tee.c @@ -26,7 +26,6 @@ #include "system.h" #include "error.h" -char *xmalloc (); int full_write (); static int tee __P ((int nfiles, const char **files)); diff --git a/src/test.c b/src/test.c index 93a3df4..11a777a 100644 --- a/src/test.c +++ b/src/test.c @@ -102,8 +102,6 @@ extern uid_t geteuid (); # define test_exit(val) test_error_return = val, longjmp (test_exit_buf, 1) #endif /* !TEST_STANDALONE */ -char *xrealloc (); - static int pos; /* The offset of the current argument in ARGV. */ static int argc; /* The number of arguments present in ARGV. */ static char **argv; /* The argument list. */ diff --git a/src/users.c b/src/users.c index a3d6d7b..a9691bc 100644 --- a/src/users.c +++ b/src/users.c @@ -24,8 +24,6 @@ #include "error.h" #include "readutmp.h" -char *xmalloc (); - /* The name this program was run with. */ char *program_name; diff --git a/src/who.c b/src/who.c index ff2f9f4..33fed28 100644 --- a/src/who.c +++ b/src/who.c @@ -41,7 +41,6 @@ int gethostname (); char *ttyname (); -char *xmalloc (); /* The name this program was run with. */ char *program_name; -- 2.7.4