From 6ff444c4184433586a8879376bd5006eb793499a Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 30 Dec 2012 17:41:42 -0500 Subject: unify xmalloc prototypes & friends These prototypes are duplicated in many places. Add a dedicated header for holding prototypes for program-specific functions to avoid that. Signed-off-by: Mike Frysinger --- nss/makedb.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'nss') diff --git a/nss/makedb.c b/nss/makedb.c index d4a19b3597..13bd8461d4 100644 --- a/nss/makedb.c +++ b/nss/makedb.c @@ -173,10 +173,7 @@ static void reset_file_creation_context (void); /* External functions. */ -extern void *xmalloc (size_t n) - __attribute_malloc__ __attribute_alloc_size (1); -extern void *xcalloc (size_t n, size_t s) - __attribute_malloc__ __attribute_alloc_size (1, 2); +#include int -- cgit v1.2.1