From b65c9e74aad92afa5cc6b080ac38a61c64baece8 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Tue, 31 Jul 2012 11:59:41 +0200 Subject: [PATCH] dlhist.c: don't include '\n' in calls to error() --- dlhist.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlhist.c b/dlhist.c index 7224358..5bcac73 100644 --- a/dlhist.c +++ b/dlhist.c @@ -265,7 +265,7 @@ int dlhist_open() { hdr = (struct header *) buf; if (hdr->signature != htonl(SIGNATURE) || hdr->version != htonl(1)) { - error("dlhist_open: Invalid header\n"); + error("dlhist_open: Invalid header"); goto error; } @@ -433,7 +433,7 @@ void dlhist_flush() { commit_lock(&lock); return; error: - error("dlhist_flush: partial write\n"); + error("dlhist_flush: partial write"); } void dlhist_close() {