about summary refs log tree commit diff
path: root/locale
diff options
context:
space:
mode:
Diffstat (limited to 'locale')
-rw-r--r--locale/programs/xmalloc.c3
-rw-r--r--locale/programs/xstrdup.c5
2 files changed, 6 insertions, 2 deletions
diff --git a/locale/programs/xmalloc.c b/locale/programs/xmalloc.c
index 0a10fbccf2..cbef26f7e5 100644
--- a/locale/programs/xmalloc.c
+++ b/locale/programs/xmalloc.c
@@ -30,6 +30,9 @@
 #if STDC_HEADERS || _LIBC
 #include <stdlib.h>
 static VOID *fixup_null_alloc __P ((size_t n));
+VOID *xmalloc __P ((size_t n));
+VOID *xcalloc __P ((size_t n, size_t s));
+VOID *xrealloc __P ((VOID *p, size_t n));
 #else
 VOID *calloc ();
 VOID *malloc ();
diff --git a/locale/programs/xstrdup.c b/locale/programs/xstrdup.c
index 1b5b415b2b..69ad9950ad 100644
--- a/locale/programs/xstrdup.c
+++ b/locale/programs/xstrdup.c
@@ -1,5 +1,5 @@
 /* xstrdup.c -- copy a string with out of memory checking
-   Copyright (C) 1990 Free Software Foundation, Inc.
+   Copyright (C) 1990, 1996 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
@@ -24,7 +24,8 @@
 #else
 #include <strings.h>
 #endif
-char *xmalloc ();
+void *xmalloc __P ((size_t n));
+char *xstrdup __P ((char *string));
 
 /* Return a newly allocated copy of STRING.  */