1
0
mirror of https://github.com/anope/anope.git synced 2026-06-29 00:26:39 +02:00

Make functions that don't use this static.

This commit is contained in:
Sadie Powell
2024-02-27 10:40:23 +00:00
parent 73d4ac6de0
commit b5b3c74477
35 changed files with 61 additions and 61 deletions
+2 -2
View File
@@ -31,7 +31,7 @@ class Packet final
return name.find_first_not_of("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ.-") == Anope::string::npos;
}
void PackName(unsigned char *output, unsigned short output_size, unsigned short &pos, const Anope::string &name)
static void PackName(unsigned char *output, unsigned short output_size, unsigned short &pos, const Anope::string &name)
{
if (pos + name.length() + 2 > output_size)
throw SocketException("Unable to pack name");
@@ -51,7 +51,7 @@ class Packet final
output[pos++] = 0;
}
Anope::string UnpackName(const unsigned char *input, unsigned short input_size, unsigned short &pos)
static Anope::string UnpackName(const unsigned char *input, unsigned short input_size, unsigned short &pos)
{
Anope::string name;
unsigned short pos_ptr = pos, lowest_ptr = input_size;