Skip to content

Commit 557d9c7

Browse files
ci(pre-commit): Apply automatic fixes
1 parent cfa5ac5 commit 557d9c7

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

libraries/DNSServer/src/DNSServer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
DNSServer::DNSServer() : _port(DNS_DEFAULT_PORT), _ttl(htonl(DNS_DEFAULT_TTL)), _errorReplyCode(DNSReplyCode::NonExistentDomain) {}
1616

1717
DNSServer::DNSServer(const String &domainName)
18-
: _port(DNS_DEFAULT_PORT), _ttl(htonl(DNS_DEFAULT_TTL)), _errorReplyCode(DNSReplyCode::NonExistentDomain), _domainName(domainName) {};
18+
: _port(DNS_DEFAULT_PORT), _ttl(htonl(DNS_DEFAULT_TTL)), _errorReplyCode(DNSReplyCode::NonExistentDomain), _domainName(domainName){};
1919

2020
bool DNSServer::start() {
2121
if (_resolvedIP.operator uint32_t() == 0) { // no address is set, try to obtain AP interface's IP

libraries/DNSServer/src/DNSServer.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
// definition of RFC1035 3.1
1919
// for instance, a postfix of example.com would be defined as:
2020
// #define DNS_SOA_POSTFIX_LABEL {'\7', 'e', 'x', 'a', 'm', 'p', 'l', 'e', '\3', 'c', 'o', 'm', '\0'}
21-
#define DNS_SOA_POSTFIX_LABEL {'\5', 'l', 'o', 'c', 'a', 'l', '\0'}
21+
#define DNS_SOA_POSTFIX_LABEL \
22+
{ '\5', 'l', 'o', 'c', 'a', 'l', '\0' }
2223
// From the following values only the MINIMAL_TTL has relevance
2324
// in the context of client-server protocol interactions.
2425
#define DNS_SOA_SERIAL 2025052900 // Arbitrary
@@ -99,7 +100,7 @@ class DNSServer {
99100
* @param domainName - domain name to serve
100101
*/
101102
DNSServer(const String &domainName);
102-
~DNSServer() {}; // default d-tor
103+
~DNSServer(){}; // default d-tor
103104

104105
// Copy semantics not implemented (won't run on same UDP port anyway)
105106
DNSServer(const DNSServer &) = delete;

0 commit comments

Comments
 (0)