From: Arvin Schnell Date: Wed, 19 Apr 2023 07:40:04 +0000 (+0200) Subject: - coding style X-Git-Tag: v0.10.5~22^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c33d6178cbefb7dad17dc7315527e8a894a85c94;p=thirdparty%2Fsnapper.git - coding style --- diff --git a/client/installation-helper.cc b/client/installation-helper.cc index 248cf350..4869c8e1 100644 --- a/client/installation-helper.cc +++ b/client/installation-helper.cc @@ -23,7 +23,7 @@ #include "config.h" -#include +#include #include #include #include diff --git a/client/misc.cc b/client/misc.cc index 6088918a..105049bb 100644 --- a/client/misc.cc +++ b/client/misc.cc @@ -192,7 +192,7 @@ get_filesystem(const ProxyConfig& config, const string& target_root) Differ::Differ() - : command(DIFFBIN " --new-file --unified"), extensions() + : command(DIFFBIN " --new-file --unified") { } diff --git a/server/Client.cc b/server/Client.cc index 87bcc724..066d3d6e 100644 --- a/server/Client.cc +++ b/server/Client.cc @@ -603,7 +603,7 @@ Client::list_configs(DBus::Connection& conn, DBus::Message& msg) DBus::Marshaller marshaller(reply); marshaller.open_array(DBus::TypeInfo::signature); for (MetaSnappers::const_iterator it = meta_snappers.begin(); it != meta_snappers.end(); ++it) - marshaller << it->getConfigInfo(); + marshaller << it->getConfigInfo(); marshaller.close_array(); conn.send(reply); @@ -1218,9 +1218,9 @@ Client::get_default_snapshot(DBus::Connection& conn, DBus::Message& msg) DBus::Marshaller marshaller(reply); if (tmp != snapshots.end()) - marshaller << true << tmp->getNum(); + marshaller << true << tmp->getNum(); else - marshaller << false << (unsigned int)(0); + marshaller << false << (unsigned int)(0); conn.send(reply); } @@ -1252,9 +1252,9 @@ Client::get_active_snapshot(DBus::Connection& conn, DBus::Message& msg) DBus::Marshaller marshaller(reply); if (tmp != snapshots.end()) - marshaller << true << tmp->getNum(); + marshaller << true << tmp->getNum(); else - marshaller << false << (unsigned int)(0); + marshaller << false << (unsigned int)(0); conn.send(reply); } @@ -1726,7 +1726,7 @@ Client::debug(DBus::Connection& conn, DBus::Message& msg) { std::ostringstream s; s << " pid:" << getpid(); - marshaller << s.str(); + marshaller << s.str(); } marshaller << "clients:"; @@ -1742,7 +1742,7 @@ Client::debug(DBus::Connection& conn, DBus::Message& msg) s << ", locks " << it->locks.size(); if (!it->comparisons.empty()) s << ", comparisons " << it->comparisons.size(); - marshaller << s.str(); + marshaller << s.str(); } marshaller << "backgrounds:"; @@ -1750,7 +1750,7 @@ Client::debug(DBus::Connection& conn, DBus::Message& msg) { std::ostringstream s; s << " name:'" << it->meta_snapper->configName() << "'"; - marshaller << s.str(); + marshaller << s.str(); } marshaller << "meta-snappers:"; @@ -1766,7 +1766,7 @@ Client::debug(DBus::Connection& conn, DBus::Message& msg) else s << ", use count " << it->use_count(); } - marshaller << s.str(); + marshaller << s.str(); } marshaller << "compile options:"; diff --git a/snapper/Btrfs.cc b/snapper/Btrfs.cc index 8386c1b6..c406daa8 100644 --- a/snapper/Btrfs.cc +++ b/snapper/Btrfs.cc @@ -131,7 +131,7 @@ namespace snapper case EEXIST: SN_THROW(CreateConfigFailedException("creating btrfs subvolume .snapshots failed " "since it already exists")); - break; + break; default: SN_THROW(CreateConfigFailedException("creating btrfs subvolume .snapshots failed")); diff --git a/snapper/Filesystem.cc b/snapper/Filesystem.cc index 30164d19..0e0e7e7a 100644 --- a/snapper/Filesystem.cc +++ b/snapper/Filesystem.cc @@ -23,11 +23,11 @@ #include "config.h" -#include +#include #include #include #include -#include +#include #include #include #include