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 --- elf/pldd.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'elf/pldd.c') diff --git a/elf/pldd.c b/elf/pldd.c index b09252d..d9388a1 100644 --- a/elf/pldd.c +++ b/elf/pldd.c @@ -43,10 +43,7 @@ extern char *program_invocation_short_name; #define PACKAGE _libc_intl_domainname /* External functions. */ -extern void *xmalloc (size_t n) - __attribute_malloc__ __attribute_alloc_size (1); -extern void *xrealloc (void *o, size_t n) - __attribute_malloc__ __attribute_alloc_size (2); +#include /* Name and version of program. */ static void print_version (FILE *stream, struct argp_state *state); -- cgit v1.1