From 8f83b35a3c933e749a08229ffff53d3877c54f4d Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Fri, 12 Feb 2016 12:20:36 +0300 Subject: [PATCH] Remove duplicate new-line in OUT_OF_MEMORY message (cord) * cord/cordbscs.c (OUT_OF_MEMORY): Remove '\n' in ABORT message. * cord/cordxtra.c (OUT_OF_MEMORY): Likewise. --- cord/cordbscs.c | 2 +- cord/cordxtra.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cord/cordbscs.c b/cord/cordbscs.c index 746fa792..889129d1 100644 --- a/cord/cordbscs.c +++ b/cord/cordbscs.c @@ -37,7 +37,7 @@ typedef void (* oom_fn)(void); oom_fn CORD_oom_fn = (oom_fn) 0; # define OUT_OF_MEMORY { if (CORD_oom_fn != (oom_fn) 0) (*CORD_oom_fn)(); \ - ABORT("Out of memory\n"); } + ABORT("Out of memory"); } # define ABORT(msg) { fprintf(stderr, "%s\n", msg); abort(); } typedef unsigned long word; diff --git a/cord/cordxtra.c b/cord/cordxtra.c index 28ed886c..6be86b2b 100644 --- a/cord/cordxtra.c +++ b/cord/cordxtra.c @@ -59,8 +59,8 @@ typedef void (* oom_fn)(void); -# define OUT_OF_MEMORY { if (CORD_oom_fn != (oom_fn) 0) (*CORD_oom_fn)(); \ - ABORT("Out of memory\n"); } +# define OUT_OF_MEMORY { if (CORD_oom_fn != (oom_fn) 0) (*CORD_oom_fn)(); \ + ABORT("Out of memory"); } # define ABORT(msg) { fprintf(stderr, "%s\n", msg); abort(); } #if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) -- 2.40.0