First commit towards replacing pCon-> with someFunc(pCon)
This is accompanied with the removal of dead code in conman.c and else
This commit is contained in:
8
scan.c
8
scan.c
@ -1308,7 +1308,7 @@ static int ScanUUInterest(int iEvent, void *pEventData, void *pUser)
|
||||
assert(self);
|
||||
assert(pCon);
|
||||
/*
|
||||
printf("ScanUUInterest called for pCon = %p handle %d\n", pCon, pCon->sockHandle);
|
||||
printf("ScanUUInterest called for pCon = %p handle %d\n", pCon, SCGetSockHandle(pCon));
|
||||
*/
|
||||
if (!SCisConnected(pCon)) {
|
||||
return -1;
|
||||
@ -1812,7 +1812,7 @@ int ScanWrapper(SConnection * pCon, SicsInterp * pSics, void *pData,
|
||||
/*-------- interest */
|
||||
else if (strcmp(argv[1], "interest") == 0) {
|
||||
/*
|
||||
printf("Registering scan callbacks on handle %d\n", pCon->sockHandle);
|
||||
printf("Registering scan callbacks on handle %d\n", SCGetSockHandle(pCon));
|
||||
*/
|
||||
lID = RegisterCallback(self->pCall, SCANSTART, ScanInterest,
|
||||
SCCopyConnection(pCon), SCDeleteConnection);
|
||||
@ -1826,7 +1826,7 @@ int ScanWrapper(SConnection * pCon, SicsInterp * pSics, void *pData,
|
||||
/*-------- interest */
|
||||
else if (strcmp(argv[1], "dyninterest") == 0) {
|
||||
/*
|
||||
printf("Registering scanDyn callbacks on handle %d\n", pCon->sockHandle);
|
||||
printf("Registering scanDyn callbacks on handle %d\n", SCGetSockHandle(pCon));
|
||||
*/
|
||||
lID = RegisterCallback(self->pCall, SCANSTART, ScanDynInterest,
|
||||
SCCopyConnection(pCon), SCDeleteConnection);
|
||||
@ -1841,7 +1841,7 @@ int ScanWrapper(SConnection * pCon, SicsInterp * pSics, void *pData,
|
||||
else if (strcmp(argv[1], "uuinterest") == 0) {
|
||||
/*
|
||||
printf("Registering scanUU callbacks on handle %d, con = %p\n",
|
||||
conSave->sockHandle, conSave);
|
||||
SCGetSockHandle(conSave), conSave);
|
||||
*/
|
||||
lID = RegisterCallback(self->pCall, SCANSTART, ScanUUInterest,
|
||||
SCCopyConnection(pCon), SCDeleteConnection);
|
||||
|
Reference in New Issue
Block a user