aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_gateway.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-07-22 18:33:38 +0100
committerGravatar Sadie Powell2022-07-22 18:53:21 +0100
commit648f813f8c89e6e7d0ed5bda2c2149bee2babb09 (patch)
tree5357669e57bb381c80bfdbd24ed4057a99db8e5b /src/modules/m_gateway.cpp
parentUpdate author list. (diff)
Switch from NULL to nullptr.
Diffstat (limited to 'src/modules/m_gateway.cpp')
-rw-r--r--src/modules/m_gateway.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_gateway.cpp b/src/modules/m_gateway.cpp
index 15e827507..448caefc1 100644
--- a/src/modules/m_gateway.cpp
+++ b/src/modules/m_gateway.cpp
@@ -170,7 +170,7 @@ public:
static bool ParseIP(const std::string& in, irc::sockets::sockaddrs& out)
{
- const char* ident = NULL;
+ const char* ident = nullptr;
if (in.length() == 8)
{
// The ident is an IPv4 address encoded in hexadecimal with two characters
@@ -195,7 +195,7 @@ public:
// Try to convert the IP address to a string. If this fails then the user
// does not have an IPv4 address in their ident.
errno = 0;
- unsigned long address = strtoul(ident, NULL, 16);
+ unsigned long address = strtoul(ident, nullptr, 16);
if (errno)
return false;