From: Michihiro NAKAJIMA Date: Mon, 16 Nov 2009 22:19:49 +0000 (-0500) Subject: Revert r1617. X-Git-Tag: v2.8.0~150 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d57b140a7627710e966b4cb2f25e526c5997049e;p=thirdparty%2Flibarchive.git Revert r1617. My previous change caused error on linux. SVN-Revision: 1665 --- 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); }