From 4a58726d8b78b506216f81998c812b0c8c468daa Mon Sep 17 00:00:00 2001 From: om Date: Thu, 29 Jun 2006 07:00:25 +0000 Subject: [PATCH] Convert char* to const char* in InspSocket constructor prototype. Shouldn't break anything but ought to help lose some ugleh casts... >:) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4080 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/inspsocket.h | 2 +- src/inspsocket.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/inspsocket.h b/include/inspsocket.h index 7e8593391..e32b06bbb 100644 --- a/include/inspsocket.h +++ b/include/inspsocket.h @@ -174,7 +174,7 @@ public: * will be set with the given IP address * and placed in CONNECTED state. */ - InspSocket(int newfd, char* ip); + InspSocket(int newfd, const char* ip); /** * This constructor is used to create a new diff --git a/src/inspsocket.cpp b/src/inspsocket.cpp index 651a02b71..3de8e92b6 100644 --- a/src/inspsocket.cpp +++ b/src/inspsocket.cpp @@ -42,7 +42,7 @@ InspSocket::InspSocket() this->ClosePending = false; } -InspSocket::InspSocket(int newfd, char* ip) +InspSocket::InspSocket(int newfd, const char* ip) { this->fd = newfd; this->state = I_CONNECTED; -- 2.39.2