summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/inspsocket.h2
-rw-r--r--src/inspsocket.cpp2
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;