summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1999-09-02 21:23:01 +0000
committerJim Meyering <jim@meyering.net>1999-09-02 21:23:01 +0000
commit81fde1922fd7dbdebecd63fb47ac36435593b23c (patch)
tree7db48e94dee25c5fd377fcbbcc157e4b208e7c57 /lib
parent7d2b2cc3f929ff9b2784f6ef03ff53bb1ea73a31 (diff)
downloadcoreutils-81fde1922fd7dbdebecd63fb47ac36435593b23c.tar.xz
(xalloc_fail_func): Use `PARAMS'.
(xstrdup): Add protoype.
Diffstat (limited to 'lib')
-rw-r--r--lib/xalloc.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/xalloc.h b/lib/xalloc.h
index 2709ad866..38463abba 100644
--- a/lib/xalloc.h
+++ b/lib/xalloc.h
@@ -32,8 +32,8 @@
extern int xalloc_exit_failure;
/* If this pointer is non-zero, run the specified function upon each
- allocation failure. It is initialized to zero. */
-extern void (*xalloc_fail_func) ();
+ allocation failure. It is initialized to zero. */
+extern void (*xalloc_fail_func) PARAMS ((void));
/* If XALLOC_FAIL_FUNC is undefined or a function that returns, this
message must be non-NULL. It is translated via gettext.
@@ -43,6 +43,7 @@ extern char *const xalloc_msg_memory_exhausted;
void *xmalloc PARAMS ((size_t n));
void *xcalloc PARAMS ((size_t n, size_t s));
void *xrealloc PARAMS ((void *p, size_t n));
+char *xstrdup PARAMS ((const char *str));
# define XMALLOC(Type, N_bytes) ((Type *) xmalloc (sizeof (Type) * (N_bytes)))
# define XCALLOC(Type, N_bytes) ((Type *) xcalloc (sizeof (Type), (N_bytes)))