summaryrefslogtreecommitdiff
path: root/protocols/Yahoo/src/server.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-01-05 15:07:22 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-01-05 15:07:22 +0000
commit7dc3df386f9b0fadc115ff55eefb8fbeb1c3077a (patch)
treec8162e48af58f6d4ee4667cd6ca6400d01a9f7e5 /protocols/Yahoo/src/server.cpp
parent3cd763c7a9c62bfb1c1dc43246b2199ee9427e92 (diff)
- fix for Unicode popups;
- code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@2980 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Yahoo/src/server.cpp')
-rw-r--r--protocols/Yahoo/src/server.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/protocols/Yahoo/src/server.cpp b/protocols/Yahoo/src/server.cpp
index 34ccfe8dc3..329b797789 100644
--- a/protocols/Yahoo/src/server.cpp
+++ b/protocols/Yahoo/src/server.cpp
@@ -78,7 +78,7 @@ void __cdecl CYahooProto::server_main(void *empty)
for(l=m_connections; l; ) {
struct _conn *c = ( _conn * )l->data;
//LOG(("Connection tag:%d id:%d fd:%d remove:%d", c->tag, c->id, c->fd, c->remove));
- if(c->remove) {
+ if (c->remove) {
YList *n = y_list_next(l);
//LOG(("Removing id:%d fd:%d tag:%d", c->id, c->fd, c->tag));
m_connections = y_list_remove_link(m_connections, l);
@@ -86,13 +86,13 @@ void __cdecl CYahooProto::server_main(void *empty)
FREE(c);
l=n;
} else {
- if(c->cond & YAHOO_INPUT_READ) {
- //LOG(( "[YAHOO_INPUT_READ] Waiting on read. Tag: %d fd: %d", c->tag, c->fd ));
+ if (c->cond & YAHOO_INPUT_READ) {
+ //LOG(("[YAHOO_INPUT_READ] Waiting on read. Tag: %d fd: %d", c->tag, c->fd ));
nls.hReadConns[ridx++] = (HANDLE)c->fd;
}
- if(c->cond & YAHOO_INPUT_WRITE) {
- //LOG(( "[YAHOO_INPUT_WRITE] Waiting on write. Tag: %d fd: %d", c->tag, c->fd ));
+ if (c->cond & YAHOO_INPUT_WRITE) {
+ //LOG(("[YAHOO_INPUT_WRITE] Waiting on write. Tag: %d fd: %d", c->tag, c->fd ));
nls.hWriteConns[widx++] =(HANDLE) c->fd;
}
@@ -160,12 +160,12 @@ void __cdecl CYahooProto::server_main(void *empty)
continue;
/* are we waiting for a Read request? */
- if(c->cond & YAHOO_INPUT_READ) {
+ if (c->cond & YAHOO_INPUT_READ) {
for (i = 0; i < ridx; i++) {
if ((HANDLE)c->fd == nls.hReadConns[i]) {
if (nls.hReadStatus[i]) {
- //LOG(( "[YAHOO_INPUT_READ] Read Ready. Tag: %d fd: %d", c->tag, c->fd ));
+ //LOG(("[YAHOO_INPUT_READ] Read Ready. Tag: %d fd: %d", c->tag, c->fd ));
yahoo_callback(c, YAHOO_INPUT_READ);
}
}//if c->fd=
@@ -174,12 +174,12 @@ void __cdecl CYahooProto::server_main(void *empty)
}
/* are we waiting for a Write request? */
- if(c->cond & YAHOO_INPUT_WRITE) {
+ if (c->cond & YAHOO_INPUT_WRITE) {
for (i = 0; i < widx; i++) {
if ((HANDLE)c->fd == nls.hWriteConns[i]) {
if (nls.hWriteStatus[i]) {
- //LOG(( "[YAHOO_INPUT_WRITE] Write ready. Tag: %d fd: %d", c->tag, c->fd ));
+ //LOG(("[YAHOO_INPUT_WRITE] Write ready. Tag: %d fd: %d", c->tag, c->fd ));
yahoo_callback(c, YAHOO_INPUT_WRITE);
}
} // if c->fd == nls