From fa6b0879f2c91662cdef26b598889b9834196805 Mon Sep 17 00:00:00 2001 From: Tilman Sauerbeck Date: Wed, 8 Nov 2006 20:44:43 +0100 Subject: [PATCH] Some indentation fixes. --- pkgutil.cc | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) 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); } -- 2.26.2