summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-07-15 11:15:59 +0200
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-07-19 09:50:37 +0200
commit68f5518b10108af6abadfe709af4e203d388b834 (patch)
tree265d70d3dc9637a3cdfffdd07268be6a4b92b2f1 /src
parenta5f048e3b2504959994cc9545a70fde01b70d99a (diff)
downloadjustbuild-68f5518b10108af6abadfe709af4e203d388b834.tar.gz
common remote: Fix missing or wrong header guards
Diffstat (limited to 'src')
-rw-r--r--src/buildtool/common/remote/remote_common.hpp6
-rw-r--r--src/buildtool/common/remote/retry.hpp5
-rw-r--r--src/buildtool/common/remote/retry_parameters.hpp5
3 files changed, 13 insertions, 3 deletions
diff --git a/src/buildtool/common/remote/remote_common.hpp b/src/buildtool/common/remote/remote_common.hpp
index 92adda0b..9df0db5c 100644
--- a/src/buildtool/common/remote/remote_common.hpp
+++ b/src/buildtool/common/remote/remote_common.hpp
@@ -12,8 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.
-#ifndef INCLUDED_SRC_BUILDTOOL_COMMON_REMOTE_ADDRESS_HPP
-#define INCLUDED_SRC_BUILDTOOL_COMMON_REMOTE_ADDRESS_HPP
+#ifndef INCLUDED_SRC_BUILDTOOL_COMMON_REMOTE_COMMON_HPP
+#define INCLUDED_SRC_BUILDTOOL_COMMON_REMOTE_COMMON_HPP
#include <map>
#include <optional>
@@ -131,4 +131,4 @@ using DispatchEndpoint = std::pair<ExecutionProperties, ServerAddress>;
return parsed;
}
-#endif // INCLUDED_SRC_BUILDTOOL_COMMON_REMOTE_ADDRESS_HPP
+#endif // INCLUDED_SRC_BUILDTOOL_COMMON_REMOTE_COMMON_HPP
diff --git a/src/buildtool/common/remote/retry.hpp b/src/buildtool/common/remote/retry.hpp
index 0f82a48f..b9298588 100644
--- a/src/buildtool/common/remote/retry.hpp
+++ b/src/buildtool/common/remote/retry.hpp
@@ -12,6 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+#ifndef INCLUDED_SRC_BUILDTOOL_COMMON_RETRY_HPP
+#define INCLUDED_SRC_BUILDTOOL_COMMON_RETRY_HPP
+
#include <optional>
#include <thread>
#include <utility> // std::move
@@ -145,3 +148,5 @@ template <CallableReturningGrpcStatus F>
}
return {false, std::move(status)};
}
+
+#endif // INCLUDED_SRC_BUILDTOOL_COMMON_RETRY_HPP
diff --git a/src/buildtool/common/remote/retry_parameters.hpp b/src/buildtool/common/remote/retry_parameters.hpp
index 6a9beedf..bc4c474a 100644
--- a/src/buildtool/common/remote/retry_parameters.hpp
+++ b/src/buildtool/common/remote/retry_parameters.hpp
@@ -12,6 +12,9 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+#ifndef INCLUDED_SRC_BUILDTOOL_COMMON_RETRY_PARAMETERS_HPP
+#define INCLUDED_SRC_BUILDTOOL_COMMON_RETRY_PARAMETERS_HPP
+
#include <mutex>
#include <random>
@@ -126,3 +129,5 @@ class Retry {
std::random_device dev_;
std::mt19937 rng_{dev_()};
};
+
+#endif // INCLUDED_SRC_BUILDTOOL_COMMON_RETRY_PARAMETERS_HPP