File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ void SCTPAssociation::printSctpPathMap() const
141141const char *SCTPAssociation::stateName (const int32 state)
142142{
143143#define CASE (x ) case x: \
144- s = #x + 7 ; break
144+ s = ( char *) #x + 7 ; break
145145 const char *s = " unknown" ;
146146 switch (state) {
147147 CASE (SCTP_S_CLOSED);
@@ -160,7 +160,7 @@ const char *SCTPAssociation::stateName(const int32 state)
160160const char *SCTPAssociation::eventName (const int32 event)
161161{
162162#define CASE (x ) case x: \
163- s = #x + 7 ; break
163+ s = ( char *) #x + 7 ; break
164164 const char *s = " unknown" ;
165165 switch (event) {
166166 CASE (SCTP_E_OPEN_PASSIVE);
@@ -206,7 +206,7 @@ const char *SCTPAssociation::eventName(const int32 event)
206206const char *SCTPAssociation::indicationName (const int32 code)
207207{
208208#define CASE (x ) case x: \
209- s = #x + 7 ; break
209+ s = ( char *) #x + 7 ; break
210210 const char *s = " unknown" ;
211211 switch (code) {
212212 CASE (SCTP_I_DATA);
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ namespace tcp {
4545const char *TCPConnection::stateName (int state)
4646{
4747#define CASE (x ) case x: \
48- s = #x + 6 ; break
48+ s = ( char *) #x + 6 ; break
4949 const char *s = " unknown" ;
5050 switch (state) {
5151 CASE (TCP_S_INIT);
@@ -68,7 +68,7 @@ const char *TCPConnection::stateName(int state)
6868const char *TCPConnection::eventName (int event)
6969{
7070#define CASE (x ) case x: \
71- s = #x + 6 ; break
71+ s = ( char *) #x + 6 ; break
7272 const char *s = " unknown" ;
7373 switch (event) {
7474 CASE (TCP_E_IGNORE);
@@ -98,7 +98,7 @@ const char *TCPConnection::eventName(int event)
9898const char *TCPConnection::indicationName (int code)
9999{
100100#define CASE (x ) case x: \
101- s = #x + 6 ; break
101+ s = ( char *) #x + 6 ; break
102102 const char *s = " unknown" ;
103103 switch (code) {
104104 CASE (TCP_I_DATA);
Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ void TcpLwipConnection::sendEstablishedMsg()
151151const char *TcpLwipConnection::indicationName (int code)
152152{
153153#define CASE (x ) case x: \
154- s = #x + 6 ; break
154+ s = ( char *) #x + 6 ; break
155155 const char *s = " unknown" ;
156156
157157 switch (code) {
You can’t perform that action at this time.
0 commit comments