From 607838a9cc960811973c1cff017938bbacd7487b Mon Sep 17 00:00:00 2001 From: Pav Lucistnik Date: Wed, 29 Dec 2004 04:24:24 +0000 Subject: Add oggsplit, a simple tool for splitting multiplexed (grouped or chained) Ogg files into separate streams. --- audio/oggsplit/files/patch-xmalloc.c | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 audio/oggsplit/files/patch-xmalloc.c (limited to 'audio/oggsplit/files/patch-xmalloc.c') diff --git a/audio/oggsplit/files/patch-xmalloc.c b/audio/oggsplit/files/patch-xmalloc.c new file mode 100644 index 000000000000..0b9a2c53d8d1 --- /dev/null +++ b/audio/oggsplit/files/patch-xmalloc.c @@ -0,0 +1,33 @@ +--- xmalloc.c.orig Mon Aug 4 22:23:50 2003 ++++ xmalloc.c Wed Dec 29 04:56:49 2004 +@@ -44,8 +44,6 @@ + # define _(Text) Text + #endif + +-#include "error.h" +- + #ifndef EXIT_FAILURE + # define EXIT_FAILURE 1 + #endif +@@ -64,12 +62,6 @@ + The caller may set it to some other value. */ + int xmalloc_exit_failure = EXIT_FAILURE; + +-#if __STDC__ && (HAVE_VPRINTF || HAVE_DOPRNT) +-void error (int, int, const char *, ...); +-#else +-void error (); +-#endif +- + static VOID * + fixup_null_alloc (n) + size_t n; +@@ -79,8 +71,6 @@ + p = 0; + if (n == 0) + p = malloc ((size_t) 1); +- if (p == 0) +- error (xmalloc_exit_failure, 0, _("Memory exhausted")); + return p; + } + -- cgit v1.2.3