From d057953830e148631c371b140d983d7a25c064da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Wed, 21 Oct 2015 20:24:02 +0200 Subject: Fix function prototypes This resolves Bug 2434 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- src/ckpasswd.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/ckpasswd.c') diff --git a/src/ckpasswd.c b/src/ckpasswd.c index 9dbdbcf..0ccf986 100644 --- a/src/ckpasswd.c +++ b/src/ckpasswd.c @@ -43,14 +43,8 @@ # define OPT_SHADOW "" #endif -/* The functions are actually macros so that we can pick up the file and line - number information for debugging error messages without the user having to - pass those in every time. */ -#define xcalloc(n, size) x_calloc((n), (size), __FILE__, __LINE__) -#define xmalloc(size) x_malloc((size), __FILE__, __LINE__) -#define xrealloc(p, size) x_realloc((p), (size), __FILE__, __LINE__) -#define xstrdup(p) x_strdup((p), __FILE__, __LINE__) -#define xstrndup(p, size) x_strndup((p), (size), __FILE__, __LINE__) +#include "messages.h" +#include "xmalloc.h" #include -- cgit v1.2.1