summaryrefslogtreecommitdiff
path: root/xmalloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'xmalloc.h')
-rw-r--r--xmalloc.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/xmalloc.h b/xmalloc.h
index 7ac4b13d6..fb217a45c 100644
--- a/xmalloc.h
+++ b/xmalloc.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: xmalloc.h,v 1.9 2002/06/19 00:27:55 deraadt Exp $ */ 1/* $OpenBSD: xmalloc.h,v 1.13 2006/08/03 03:34:42 deraadt Exp $ */
2 2
3/* 3/*
4 * Author: Tatu Ylonen <ylo@cs.hut.fi> 4 * Author: Tatu Ylonen <ylo@cs.hut.fi>
@@ -16,12 +16,11 @@
16 * called by a name other than "ssh" or "Secure Shell". 16 * called by a name other than "ssh" or "Secure Shell".
17 */ 17 */
18 18
19#ifndef XMALLOC_H
20#define XMALLOC_H
21
22void *xmalloc(size_t); 19void *xmalloc(size_t);
23void *xrealloc(void *, size_t); 20void *xcalloc(size_t, size_t);
21void *xrealloc(void *, size_t, size_t);
24void xfree(void *); 22void xfree(void *);
25char *xstrdup(const char *); 23char *xstrdup(const char *);
26 24int xasprintf(char **, const char *, ...)
27#endif /* XMALLOC_H */ 25 __attribute__((__format__ (printf, 2, 3)))
26 __attribute__((__nonnull__ (2)));