diff options
author | Michihiro NAKAJIMA <ggcueroad@gmail.com> | 2009-11-16 17:19:49 -0500 |
---|---|---|
committer | Michihiro NAKAJIMA <ggcueroad@gmail.com> | 2009-11-16 17:19:49 -0500 |
commit | d57b140a7627710e966b4cb2f25e526c5997049e (patch) | |
tree | c9ba92c956e976ce09c76f66f8cbbdf38bf7d8db /libarchive/archive_util.c | |
parent | 8069f68233dfb276558feb6f93f530b9c77df7e5 (diff) | |
download | libarchive-d57b140a7627710e966b4cb2f25e526c5997049e.tar.gz |
Revert r1617.
My previous change caused error on linux.
SVN-Revision: 1665
Diffstat (limited to 'libarchive/archive_util.c')
-rw-r--r-- | libarchive/archive_util.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/libarchive/archive_util.c b/libarchive/archive_util.c index db368418..709c66ca 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); } |