From: Tilman Sauerbeck Date: Wed, 8 Nov 2006 19:44:43 +0000 (+0100) Subject: Some indentation fixes. X-Git-Url: http://gitweb/?a=commitdiff_plain;h=fa6b0879f2c91662cdef26b598889b9834196805;p=pkgutils-cross.git Some indentation fixes. --- diff --git a/pkgutil.cc b/pkgutil.cc index 1354365..33ee301 100644 --- a/pkgutil.cc +++ b/pkgutil.cc @@ -488,7 +488,7 @@ void pkgutil::ldconfig() const void pkgutil::pkg_footprint(string& filename) const { - unsigned int i; + unsigned int i; struct archive* archive; struct archive_entry* entry; @@ -557,17 +557,16 @@ void pkgutil::pkg_footprint(string& filename) const cout << '\n'; - if (S_ISREG(status->st_mode) && - archive_read_data_skip(archive)) - throw runtime_error_with_errno("could not read " + filename, archive_errno(archive)); - } + if (S_ISREG(status->st_mode) && archive_read_data_skip(archive)) + throw runtime_error_with_errno("could not read " + filename, archive_errno(archive)); + } - if (i == 0) { + if (i == 0) { if (archive_errno(archive) == 0) - throw runtime_error("empty package"); - else - throw runtime_error("could not read " + filename); - } + throw runtime_error("empty package"); + else + throw runtime_error("could not read " + filename); + } archive_read_finish(archive); }