From: Bruno Haible Date: Fri, 4 Jan 2019 11:32:14 +0000 (+0100) Subject: xmemdup0: Remove redundant code. X-Git-Tag: v1.0~5197 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=57555b78145265247e7af8c3f2eb8b4e3ea40105;p=gnulib.git xmemdup0: Remove redundant code. * lib/xmemdup0.h (xalloc_die): Remove declaration. --- 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