aboutsummaryrefslogtreecommitdiffstats
path: root/util/network
diff options
context:
space:
mode:
authorprime <prime@yandex-team.ru>2022-02-10 16:46:01 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:46:01 +0300
commite34f3f0e381020a427f44fbd50463d9a04089db3 (patch)
tree1a2c5ffcf89eb53ecd79dbc9bc0a195c27404d0c /util/network
parent3695a7cd42b74a4987d8d5a8f2e2443556998943 (diff)
downloadydb-e34f3f0e381020a427f44fbd50463d9a04089db3.tar.gz
Restoring authorship annotation for <prime@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'util/network')
-rw-r--r--util/network/pollerimpl.h8
-rw-r--r--util/network/socket.cpp12
2 files changed, 10 insertions, 10 deletions
diff --git a/util/network/pollerimpl.h b/util/network/pollerimpl.h
index d417a1ad4a..e8c7e40fba 100644
--- a/util/network/pollerimpl.h
+++ b/util/network/pollerimpl.h
@@ -204,8 +204,8 @@ class TEpollPoller {
public:
typedef struct ::epoll_event TEvent;
- inline TEpollPoller(bool closeOnExec = false)
- : Fd_(epoll_create1(closeOnExec ? EPOLL_CLOEXEC : 0))
+ inline TEpollPoller(bool closeOnExec = false)
+ : Fd_(epoll_create1(closeOnExec ? EPOLL_CLOEXEC : 0))
{
if (Fd_ == -1) {
ythrow TSystemError() << "epoll_create failed";
@@ -655,8 +655,8 @@ static inline TDuration PollStep(const TInstant& deadLine, const TInstant& now)
template <class TBase>
class TGenericPoller: public TBase {
public:
- using TBase::TBase;
-
+ using TBase::TBase;
+
using TEvent = typename TBase::TEvent;
inline void Set(void* data, SOCKET fd, int what) {
diff --git a/util/network/socket.cpp b/util/network/socket.cpp
index 7b402d1996..4f6e804346 100644
--- a/util/network/socket.cpp
+++ b/util/network/socket.cpp
@@ -981,15 +981,15 @@ private:
void operator()(struct addrinfo* ai) noexcept {
if (!UseFreeAddrInfo_ && ai != NULL) {
if (ai->ai_addr != NULL) {
- free(ai->ai_addr);
+ free(ai->ai_addr);
}
struct addrinfo* p;
while (ai != NULL) {
p = ai;
ai = ai->ai_next;
- free(p->ai_canonname);
- free(p);
+ free(p->ai_canonname);
+ free(p);
}
} else if (ai != NULL) {
freeaddrinfo(ai);
@@ -1035,14 +1035,14 @@ public:
inline TImpl(const char* path, int flags)
: Info_(nullptr, TAddrInfoDeleter{/* useFreeAddrInfo = */ false})
{
- THolder<struct sockaddr_un, TFree> sockAddr(
- reinterpret_cast<struct sockaddr_un*>(malloc(sizeof(struct sockaddr_un))));
+ THolder<struct sockaddr_un, TFree> sockAddr(
+ reinterpret_cast<struct sockaddr_un*>(malloc(sizeof(struct sockaddr_un))));
Y_ENSURE(strlen(path) < sizeof(sockAddr->sun_path), "Unix socket path more than " << sizeof(sockAddr->sun_path));
sockAddr->sun_family = AF_UNIX;
strcpy(sockAddr->sun_path, path);
- TAddrInfoPtr hints(reinterpret_cast<struct addrinfo*>(malloc(sizeof(struct addrinfo))), TAddrInfoDeleter{/* useFreeAddrInfo = */ false});
+ TAddrInfoPtr hints(reinterpret_cast<struct addrinfo*>(malloc(sizeof(struct addrinfo))), TAddrInfoDeleter{/* useFreeAddrInfo = */ false});
memset(hints.get(), 0, sizeof(*hints));
hints->ai_flags = flags;