]> git.ipfire.org Git - thirdparty/snapper.git/commitdiff
- coding style
authorArvin Schnell <aschnell@suse.de>
Tue, 30 Jun 2026 12:22:04 +0000 (14:22 +0200)
committerArvin Schnell <aschnell@suse.de>
Tue, 30 Jun 2026 12:22:04 +0000 (14:22 +0200)
snapper/Compare.cc

index 99401e3eaae9a19aa4831904464e75ccfc9e0272..a6333dbd2182512525985573b7ccc95f451fe03c 100644 (file)
@@ -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;
        }
     }