Remove duplicate new-line in OUT_OF_MEMORY message (cord)
authorIvan Maidanski <ivmai@mail.ru>
Fri, 12 Feb 2016 09:20:36 +0000 (12:20 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 12 Feb 2016 09:20:36 +0000 (12:20 +0300)
* cord/cordbscs.c (OUT_OF_MEMORY): Remove '\n' in ABORT message.
* cord/cordxtra.c (OUT_OF_MEMORY): Likewise.

cord/cordbscs.c
cord/cordxtra.c

index e8246d2..5aeb3f8 100644 (file)
@@ -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;
index 28ed886..6be86b2 100644 (file)
@@ -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)