pSock is obsolete, see conman.h SConnection struct.
This commit is contained in:
16
protocol.c
16
protocol.c
@ -489,13 +489,7 @@ int SCWriteSycamore(SConnection * pCon, char *pBuffer, int iOut)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* log it for any case */
|
snprintf(pBueffel,sizeof(pBueffel)-1, "Next line intended for socket: %d", pCon->sockHandle);
|
||||||
if (pCon->pSock) {
|
|
||||||
iRet = pCon->pSock->sockid;
|
|
||||||
} else {
|
|
||||||
iRet = 0;
|
|
||||||
}
|
|
||||||
snprintf(pBueffel,sizeof(pBueffel)-1, "Next line intended for socket: %d", iRet);
|
|
||||||
SICSLogWrite(pBueffel, eInternal);
|
SICSLogWrite(pBueffel, eInternal);
|
||||||
SICSLogWrite(pBuffer, iOut);
|
SICSLogWrite(pBuffer, iOut);
|
||||||
|
|
||||||
@ -689,14 +683,8 @@ int SCWriteJSON_String(SConnection * pCon, char *pBuffer, int iOut)
|
|||||||
if (strlen(pBuffer) == 0)
|
if (strlen(pBuffer) == 0)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
/* log it for any case */
|
|
||||||
if (pCon->pSock) {
|
|
||||||
iRet = pCon->pSock->sockid;
|
|
||||||
} else {
|
|
||||||
iRet = 0;
|
|
||||||
}
|
|
||||||
if (pCon->iMacro != 1) {
|
if (pCon->iMacro != 1) {
|
||||||
snprintf(pBueffel,sizeof(pBueffel)-1, "Next line intended for socket: %d", iRet);
|
snprintf(pBueffel,sizeof(pBueffel)-1, "Next line intended for socket: %d", pCon->sockHandle);
|
||||||
SICSLogWrite(pBueffel, eInternal);
|
SICSLogWrite(pBueffel, eInternal);
|
||||||
SICSLogWrite(pBuffer, iOut);
|
SICSLogWrite(pBuffer, iOut);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user