clang-format

pull/237/head
Rick V 5 years ago
parent 2d375f03b3
commit ac639ce2b9
No known key found for this signature in database
GPG Key ID: C0EDC8723FDC3465

@ -65,9 +65,8 @@ namespace llarp
HandleSignal(int sig);
private:
void
SetPIDFile(const std::string & fname);
void
SetPIDFile(const std::string &fname);
bool
WritePIDFile() const;

@ -88,8 +88,8 @@ namespace llarp
}
}
void
Context::SetPIDFile(const std::string & fname)
void
Context::SetPIDFile(const std::string &fname)
{
pidfile = fname;
}
@ -192,7 +192,7 @@ namespace llarp
// run
if(!router->Run(nodedb))
return 1;
// run net io thread
llarp::LogInfo("running mainloop");
llarp_ev_loop_run_single_process(mainloop, worker, logic);

@ -190,7 +190,7 @@ namespace llarp
{
for(auto& item : m_Upstream)
{
auto& queue = item.second;// XXX: uninitialised memory here!
auto& queue = item.second; // XXX: uninitialised memory here!
while(queue.size())
{
auto& msg = queue.front();

@ -29,8 +29,10 @@ namespace llarp
// evidently, does nothing on LP64 systems (where size_t is *already*
// unsigned long but zero-extends this on LLP64 systems
// 2Jan19: reeee someone undid the patch
std::copy(str.begin(), str.begin() + std::min(std::string::size_type(16), str.size()),
begin());
std::copy(
str.begin(),
str.begin() + std::min(std::string::size_type(16), str.size()),
begin());
}
Tag&
@ -43,8 +45,10 @@ namespace llarp
Tag&
operator=(const std::string& str)
{
std::copy(str.begin(), str.begin() + std::min(std::string::size_type(16), str.size()),
begin());
std::copy(
str.begin(),
str.begin() + std::min(std::string::size_type(16), str.size()),
begin());
return *this;
}

Loading…
Cancel
Save