From 57555b78145265247e7af8c3f2eb8b4e3ea40105 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 4 Jan 2019 12:32:14 +0100 Subject: [PATCH] xmemdup0: Remove redundant code. * lib/xmemdup0.h (xalloc_die): Remove declaration. --- ChangeLog | 5 +++++ lib/xmemdup0.h | 7 ------- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 790256aa32..5672c3be23 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2019-01-04 Bruno Haible + + xmemdup0: Remove redundant code. + * lib/xmemdup0.h (xalloc_die): Remove declaration. + 2019-01-04 Bruno Haible backupfile: Fix module dependencies. diff --git a/lib/xmemdup0.h b/lib/xmemdup0.h index 5ef4995cd6..768f0b274b 100644 --- a/lib/xmemdup0.h +++ b/lib/xmemdup0.h @@ -25,13 +25,6 @@ extern "C" { # endif -/* This function is always triggered when memory is exhausted. - It must be defined by the application, either explicitly - or by using gnulib's xalloc-die module. This is the - function to call when one wants the program to die because of a - memory allocation failure. */ -extern _Noreturn void xalloc_die (void); - char *xmemdup0 (void const *p, size_t s); # ifdef __cplusplus -- 2.39.5