From: Kirill Okhotnikov Date: Tue, 2 Jun 2015 07:47:56 +0000 (+0200) Subject: BSD format in manual. X-Git-Tag: v3.1.900a~94^2^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F555%2Fhead;p=thirdparty%2Flibarchive.git BSD format in manual. --- diff --git a/libarchive/archive_write.3 b/libarchive/archive_write.3 index a56f2dba5..aefda3be8 100644 --- a/libarchive/archive_write.3 +++ b/libarchive/archive_write.3 @@ -189,7 +189,7 @@ write_archive(const char *outname, const char **filename) /* Set archive format and filter according to output file extension. * If it fails, set default format. Platform depended function. * See supported formats in archive_write_set_format_filter_by_ext.c */ - if ( archive_write_set_format_filter_by_ext(a, outname) != ARCHIVE_OK ) { + if (archive_write_set_format_filter_by_ext(a, outname) != ARCHIVE_OK) { archive_write_add_filter_gzip(a); archive_write_set_format_ustar(a); } @@ -202,7 +202,7 @@ write_archive(const char *outname, const char **filename) archive_write_header(a, entry); if ((fd = open(*filename, O_RDONLY)) != -1) { len = read(fd, buff, sizeof(buff)); - while ( len > 0 ) { + while (len > 0) { archive_write_data(a, buff, len); len = read(fd, buff, sizeof(buff)); }