From: Arvin Schnell Date: Tue, 30 Jun 2026 12:22:04 +0000 (+0200) Subject: - coding style X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ad2a2b6a78dbbd712fa7a5bf4d4dd129fed0cfe0;p=thirdparty%2Fsnapper.git - coding style --- diff --git a/snapper/Compare.cc b/snapper/Compare.cc index 99401e3e..a6333dbd 100644 --- a/snapper/Compare.cc +++ b/snapper/Compare.cc @@ -441,14 +441,12 @@ namespace snapper y2mil("path1:" << dir1.fullname() << " path2:" << dir2.fullname()); struct stat stat1; - int r1 = dir1.stat(&stat1); - if (r1 != 0) + if (dir1.stat(&stat1) != 0) SN_THROW(IOErrorException(sformat("stat failed path:%s errno:%d", dir1.fullname().c_str(), errno))); struct stat stat2; - int r2 = dir2.stat(&stat2); - if (r2 != 0) + if (dir2.stat(&stat2) != 0) SN_THROW(IOErrorException(sformat("stat failed path:%s errno:%d", dir2.fullname().c_str(), errno))); @@ -468,8 +466,8 @@ namespace snapper unsigned int cmpFilesXattrs(const SFile& file1, const SFile& file2) { - try - { + try + { XAttributes xa(file1); XAttributes xb(file2); @@ -488,11 +486,11 @@ namespace snapper return status; } - } + } catch (const XAttributesException& e) - { + { y2err("extended attributes or ACL compare failed"); - return (XATTRS | ACL); + return XATTRS | ACL; } }