From d57b140a7627710e966b4cb2f25e526c5997049e Mon Sep 17 00:00:00 2001 From: Michihiro NAKAJIMA Date: Mon, 16 Nov 2009 17:19:49 -0500 Subject: [PATCH] Revert r1617. My previous change caused error on linux. SVN-Revision: 1665 --- libarchive/archive_util.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/libarchive/archive_util.c b/libarchive/archive_util.c index db3684185..709c66cab 100644 --- a/libarchive/archive_util.c +++ b/libarchive/archive_util.c @@ -187,10 +187,12 @@ void __archive_errx(int retvalue, const char *msg) { static const char *msg1 = "Fatal Internal Error in libarchive: "; + size_t s; - (void)write(2, msg1, strlen(msg1)); - (void)write(2, msg, strlen(msg)); - (void)write(2, "\n", 1); + s = write(2, msg1, strlen(msg1)); + s = write(2, msg, strlen(msg)); + s = write(2, "\n", 1); + (void)s; /* UNUSED */ exit(retvalue); } -- 2.47.3