From d8e4ba4d0568769782b8c19c82e955c4aee73477 Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Fri, 19 Apr 2024 11:02:01 +0100 Subject: [PATCH] refactor: Rename `subprocess.hpp` to follow our header name conventions --- src/Makefile.am | 2 +- src/common/run_command.cpp | 2 +- src/test/system_tests.cpp | 2 +- src/util/{subprocess.hpp => subprocess.h} | 6 +++--- 4 files changed, 6 insertions(+), 6 deletions(-) rename src/util/{subprocess.hpp => subprocess.h} (99%) diff --git a/src/Makefile.am b/src/Makefile.am index 7673d2f5451..f48ed4d4425 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -320,7 +320,7 @@ BITCOIN_CORE_H = \ util/sock.h \ util/spanparsing.h \ util/string.h \ - util/subprocess.hpp \ + util/subprocess.h \ util/syserror.h \ util/task_runner.h \ util/thread.h \ diff --git a/src/common/run_command.cpp b/src/common/run_command.cpp index e5356490ef7..347b4860955 100644 --- a/src/common/run_command.cpp +++ b/src/common/run_command.cpp @@ -12,7 +12,7 @@ #include #ifdef ENABLE_EXTERNAL_SIGNER -#include +#include #endif // ENABLE_EXTERNAL_SIGNER UniValue RunCommandParseJSON(const std::string& str_command, const std::string& str_std_in) diff --git a/src/test/system_tests.cpp b/src/test/system_tests.cpp index 8aab2b565cd..2de147deeae 100644 --- a/src/test/system_tests.cpp +++ b/src/test/system_tests.cpp @@ -11,7 +11,7 @@ #include #ifdef ENABLE_EXTERNAL_SIGNER -#include +#include #endif // ENABLE_EXTERNAL_SIGNER #include diff --git a/src/util/subprocess.hpp b/src/util/subprocess.h similarity index 99% rename from src/util/subprocess.hpp rename to src/util/subprocess.h index 701eec8c10a..4a85ae92687 100644 --- a/src/util/subprocess.hpp +++ b/src/util/subprocess.h @@ -33,8 +33,8 @@ Documentation for C++ subprocessing library. @version 1.0.0 */ -#ifndef SUBPROCESS_HPP -#define SUBPROCESS_HPP +#ifndef BITCOIN_UTIL_SUBPROCESS_H +#define BITCOIN_UTIL_SUBPROCESS_H #include #include @@ -1609,4 +1609,4 @@ namespace detail { } -#endif // SUBPROCESS_HPP +#endif // BITCOIN_UTIL_SUBPROCESS_H