Skip to content

Commit e00a702

Browse files
authored
make iptos static
1 parent 3643650 commit e00a702

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

trantor/net/InetAddress.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ static void byteToChars(std::string::iterator& dst, unsigned char byte)
207207
}
208208

209209
static constexpr char stringInitBuffer[15]{};
210-
std::string iptos(unsigned inet_addr)
210+
static std::string iptos(unsigned inet_addr)
211211
{
212212
// Initialize with a static buffer to force the constructor of string to get fully inlined
213213
std::string out(stringInitBuffer, 15);

0 commit comments

Comments
 (0)