ÂÂsolved compiler warning, removed superfluous messages from plugin
This commit is contained in:
parent
297fd986f8
commit
556436ef77
|
@ -524,9 +524,8 @@ void MSNP::registerSocket(void *s, int reading, int writing, bool isSSL)
|
||||||
Error("Memory Error!!\n", NULL);
|
Error("Memory Error!!\n", NULL);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
x=kSocketsCount;
|
|
||||||
kSocketsAvailable += 10;
|
kSocketsAvailable += 10;
|
||||||
for (x; x < kSocketsAvailable; x++) {
|
for (x=kSocketsCount; x < kSocketsAvailable; x++) {
|
||||||
kPollSockets[x].fd = -1;
|
kPollSockets[x].fd = -1;
|
||||||
kPollSockets[x].events = 0;
|
kPollSockets[x].events = 0;
|
||||||
kPollSockets[x].revents = 0;
|
kPollSockets[x].revents = 0;
|
||||||
|
@ -586,6 +585,7 @@ void MSNP::closeSocket(void *s)
|
||||||
{
|
{
|
||||||
//printf("MSNP::closeSocket\n");
|
//printf("MSNP::closeSocket\n");
|
||||||
int x;
|
int x;
|
||||||
|
int i;
|
||||||
for (x = 0; x < kSocketsCount; x++) {
|
for (x = 0; x < kSocketsCount; x++) {
|
||||||
if (getSocketFileDescriptor(s) == kPollSockets[x].fd) {
|
if (getSocketFileDescriptor(s) == kPollSockets[x].fd) {
|
||||||
close(getSocketFileDescriptor(s));
|
close(getSocketFileDescriptor(s));
|
||||||
|
@ -599,8 +599,7 @@ void MSNP::closeSocket(void *s)
|
||||||
SSL_CTX_free(kSocketsSsl[x].ctx);
|
SSL_CTX_free(kSocketsSsl[x].ctx);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
int i = x;
|
for (i = x; i < kSocketsCount; i++) {
|
||||||
for (i; i < kSocketsCount; i++) {
|
|
||||||
kPollSockets[i] = kPollSockets[i+1];
|
kPollSockets[i] = kPollSockets[i+1];
|
||||||
kSocketsSsl[i] = kSocketsSsl[i+1];
|
kSocketsSsl[i] = kSocketsSsl[i+1];
|
||||||
}
|
}
|
||||||
|
@ -870,10 +869,6 @@ void MSNP::buddyJoinedConversation(MSN::SwitchboardServerConnection * conn, MSN:
|
||||||
MSN::SwitchboardServerConnection*>(username, conn));
|
MSN::SwitchboardServerConnection*>(username, conn));
|
||||||
delete ctx;
|
delete ctx;
|
||||||
conn->auth.tag = NULL;
|
conn->auth.tag = NULL;
|
||||||
std::string message = "** Buddy ";
|
|
||||||
message.append(username);
|
|
||||||
message.append(" joined conversation");
|
|
||||||
MessageFromBuddy(message.c_str(), username.c_str());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -886,10 +881,7 @@ void MSNP::buddyLeftConversation(MSN::SwitchboardServerConnection * conn, MSN::P
|
||||||
count = fSwitchboardList.CountItems();
|
count = fSwitchboardList.CountItems();
|
||||||
if (count != 0) {
|
if (count != 0) {
|
||||||
for (x=0; x < count; x++) {
|
for (x=0; x < count; x++) {
|
||||||
if (fSwitchboardList.ItemAt(x)->second == conn) {
|
if (fSwitchboardList.ItemAt(x)->second == conn) {;
|
||||||
//delete fSwitchboardList.ItemAt(x)->second;
|
|
||||||
//fSwitchboardList.RemoveItemAt(x);
|
|
||||||
MessageFromBuddy("** Buddy left conversation", username.c_str());
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Ŝarĝante…
Reference in New Issue