From: Ivan Maidanski Date: Fri, 12 Feb 2016 09:20:36 +0000 (+0300) Subject: Remove duplicate new-line in OUT_OF_MEMORY message (cord) X-Git-Tag: gc7_6_0~78 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=278775291f5f7cb0a6a98900757e76043cda4cd7;p=gc 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. --- diff --git a/cord/cordbscs.c b/cord/cordbscs.c index e8246d2f..5aeb3f8a 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)