From ee23a74f24a36acff3dc650787c05314a61b95c3 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Mon, 17 Dec 2012 05:35:25 +0100 Subject: [PATCH] log: remove extra linefeeds from log_*() and fatal*() calls --- src/client/xml_writer.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/client/xml_writer.c b/src/client/xml_writer.c index 6ed116ce..d8ed0ac5 100644 --- a/src/client/xml_writer.c +++ b/src/client/xml_writer.c @@ -59,7 +59,7 @@ void xml_end(struct writer * w) { struct xml_writer_private * p = w->priv; if (xmlTextWriterEndElement(p->xw) < 0 ) - log_warnx(NULL, "cannot end element\n"); + log_warnx(NULL, "cannot end element"); } #define MY_ENCODING "UTF-8" @@ -91,26 +91,26 @@ struct writer * xml_init(FILE * fh) { priv = malloc( sizeof( *priv ) ); if ( ! priv ) { - fatalx("out of memory\n"); + fatalx("out of memory"); return NULL; } priv->xw = xmlNewTextWriterDoc(&(priv->doc), 0); if ( ! priv->xw ) { - fatalx("cannot create xml writer\n"); + fatalx("cannot create xml writer"); return NULL; } xmlTextWriterSetIndent(priv->xw, 4); if (xmlTextWriterStartDocument(priv->xw, NULL, MY_ENCODING, NULL) < 0 ) { - fatalx("cannot start xml document\n"); + fatalx("cannot start xml document"); return NULL; } result = malloc( sizeof( struct writer ) ); if ( ! result ) { - fatalx("out of memory\n"); + fatalx("out of memory"); return NULL; } -- 2.47.2