Skip to content

Commit bfe460d

Browse files
Formating
Signed-off-by: Volker Christian <[email protected]>
1 parent f6f3eb0 commit bfe460d

File tree

8 files changed

+12
-13
lines changed

8 files changed

+12
-13
lines changed

cmake/doxygen.cmake

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ if(DOXYGEN_FOUND)
4141
COMMAND rm -f ${SNODEC_DOC_ROOTDIR}/inline_umlgraph_cache_all.pu
4242
COMMAND ${DOXYGEN_EXECUTABLE} ${DOXYFILE}
4343
COMMAND mkdir -p ${SNODEC_DOC_ROOTDIR}/html/docs/assets/
44-
COMMAND cp -a ${CMAKE_SOURCE_DIR}/docs/assets/README ${SNODEC_DOC_ROOTDIR}/html/docs/assets/
44+
COMMAND cp -a ${CMAKE_SOURCE_DIR}/docs/assets/README
45+
${SNODEC_DOC_ROOTDIR}/html/docs/assets/
4546
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/src"
4647
COMMENT "Generating API documentation with Doxygen"
4748
VERBATIM
@@ -52,7 +53,8 @@ if(DOXYGEN_FOUND)
5253
COMMAND rm -f ${SNODEC_DOC_ROOTDIR}/inline_umlgraph_cache_all.pu
5354
COMMAND ${DOXYGEN_EXECUTABLE} ${DOXYFILE}
5455
COMMAND mkdir -p ${SNODEC_DOC_ROOTDIR}/html/docs/assets/
55-
COMMAND cp -a ${CMAKE_SOURCE_DIR}/docs/assets/README ${SNODEC_DOC_ROOTDIR}/html/docs/assets/
56+
COMMAND cp -a ${CMAKE_SOURCE_DIR}/docs/assets/README
57+
${SNODEC_DOC_ROOTDIR}/html/docs/assets/
5658
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/src"
5759
COMMENT "Generating API documentation with Doxygen"
5860
VERBATIM

src/net/config/ConfigTls.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ namespace net::config {
7373
"bool",
7474
"false",
7575
CLI::IsMember({"true", "false"}));
76-
76+
7777
cipherListOpt = addOption( //
7878
"--cipher-list",
7979
"Cipher list (OpenSSL syntax)",

src/net/config/stream/ConfigSocketClient.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@
2626
namespace net::config::stream {
2727

2828
template <template <template <typename SocketAddress> typename ConfigAddressType> typename ConfigAddressLocal,
29-
template <template <typename SocketAddress> typename ConfigAddressType>
30-
typename ConfigAddressRemote>
29+
template <template <typename SocketAddress> typename ConfigAddressType> typename ConfigAddressRemote>
3130
ConfigSocketClient<ConfigAddressLocal, ConfigAddressRemote>::ConfigSocketClient(net::config::ConfigInstance* instance)
3231
: ConfigAddressRemote<net::config::ConfigAddressRemote>(instance, "remote", "Remote side of connection")
3332
, ConfigAddressLocal<net::config::ConfigAddressLocal>(instance, "local", "Local side of connection")

src/net/config/stream/ConfigSocketServer.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@
3232
namespace net::config::stream {
3333

3434
template <template <template <typename SocketAddress> typename ConfigAddressTypeT> typename ConfigAddressLocalT,
35-
template <template <typename SocketAddress> typename ConfigAddressTypeT>
36-
typename ConfigAddressRemoteT>
35+
template <template <typename SocketAddress> typename ConfigAddressTypeT> typename ConfigAddressRemoteT>
3736
class ConfigSocketServer
3837
: public ConfigAddressLocalT<net::config::ConfigAddressLocal>
3938
, public ConfigAddressRemoteT<net::config::ConfigAddressReverse>

src/net/config/stream/ConfigSocketServer.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@
2626
namespace net::config::stream {
2727

2828
template <template <template <typename SocketAddress> typename ConfigAddressType> typename ConfigAddressLocal,
29-
template <template <typename SocketAddress> typename ConfigAddressType>
30-
typename ConfigAddressRemote>
29+
template <template <typename SocketAddress> typename ConfigAddressType> typename ConfigAddressRemote>
3130
ConfigSocketServer<ConfigAddressLocal, ConfigAddressRemote>::ConfigSocketServer(net::config::ConfigInstance* instance)
3231
: ConfigAddressLocal<net::config::ConfigAddressLocal>(instance, "local", "Local side of connection")
3332
, ConfigAddressRemote<net::config::ConfigAddressReverse>(instance, "remote", "Remote side of connection")

src/utils/Daemon.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ namespace utils {
156156
if (kill(pid, SIGTERM) != 0) {
157157
throw DaemonError("kill()");
158158
}
159-
struct pollfd pollfd {};
159+
struct pollfd pollfd{};
160160
pollfd.fd = pidfd;
161161
pollfd.events = POLLIN;
162162

src/utils/sha1.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
2929

3030
/* Help macros */
31-
#define SHA1_ROL(value, bits) (((value) << (bits)) | (((value) &0xffffffff) >> (32 - (bits))))
31+
#define SHA1_ROL(value, bits) (((value) << (bits)) | (((value) & 0xffffffff) >> (32 - (bits))))
3232
#define SHA1_BLK(i) (block[i & 15] = SHA1_ROL(block[(i + 13) & 15] ^ block[(i + 8) & 15] ^ block[(i + 2) & 15] ^ block[i & 15], 1))
3333

3434
/* (R0+R1), R2, R3, R4 are the different operations used in SHA1 */

src/web/http/http_utils.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ namespace httputils {
133133
}
134134

135135
struct tm from_http_date(const std::string& http_date) {
136-
struct tm tm {};
136+
struct tm tm{};
137137

138138
strptime(http_date.c_str(), "%a, %d %b %Y %H:%M:%S", &tm);
139139
tm.tm_zone = "GMT";
@@ -144,7 +144,7 @@ namespace httputils {
144144
std::string file_mod_http_date(const std::string& filePath) {
145145
char buf[100];
146146

147-
struct stat attrib {};
147+
struct stat attrib{};
148148
stat(filePath.c_str(), &attrib); // TODO: to core::system
149149

150150
(void) strftime(buf, sizeof buf, "%a, %d %b %Y %H:%M:%S %Z", gmtime(&(attrib.st_mtime))); // TODO: to core::system

0 commit comments

Comments
 (0)