From 30ab6ceb71842f003f649b3d62b89af010cf40d1 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 20 Jun 2012 17:00:14 +0000 Subject: - direct call of MS_SKIN_ADDNEWSOUND replaced with Skin_AddSound() call; - obsolete structure SKINSOUNDDESC removed - dynamically translated hot keys; - checked correct LPGEN'ing of the sounds creation; - code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@500 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Yahoo/libyahoo2/libyahoo2.c | 6 +++--- protocols/Yahoo/libyahoo2/yahoo_httplib.c | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'protocols/Yahoo/libyahoo2') diff --git a/protocols/Yahoo/libyahoo2/libyahoo2.c b/protocols/Yahoo/libyahoo2/libyahoo2.c index 558a355e94..77802f4ca2 100644 --- a/protocols/Yahoo/libyahoo2/libyahoo2.c +++ b/protocols/Yahoo/libyahoo2/libyahoo2.c @@ -406,7 +406,7 @@ const char *dbg_key(int key) { int i=0; - while ((packet_keys[i].key >=0) && (packet_keys[i].key != key) ) + while ((packet_keys[i].key >=0) && (packet_keys[i].key != key)) i++; if (packet_keys[i].key != key) @@ -419,7 +419,7 @@ const char *dbg_service(int key) { int i=0; - while ((ymsg_service_vals[i].key > 0) && (ymsg_service_vals[i].key != key) ) + while ((ymsg_service_vals[i].key > 0) && (ymsg_service_vals[i].key != key)) i++; if (ymsg_service_vals[i].key != key) @@ -1008,7 +1008,7 @@ static void yahoo_send_packet(struct yahoo_input_data *yid, struct yahoo_packet ( yid->type == YAHOO_CONNECTION_PAGER && ( pkt->service == YAHOO_SERVICE_KEEPALIVE || pkt->service == YAHOO_SERVICE_PING || - pkt->service == YAHOO_SERVICE_LOGOFF) ) + pkt->service == YAHOO_SERVICE_LOGOFF)) ) { yahoo_send_data(yid->fd, (const char *)data, len); } else { diff --git a/protocols/Yahoo/libyahoo2/yahoo_httplib.c b/protocols/Yahoo/libyahoo2/yahoo_httplib.c index c7bcb55858..7305157d83 100644 --- a/protocols/Yahoo/libyahoo2/yahoo_httplib.c +++ b/protocols/Yahoo/libyahoo2/yahoo_httplib.c @@ -158,7 +158,7 @@ char *yahoo_urlencode(const char *instr) char *str = NULL; int len = strlen(instr); - if (!(str = y_new(char, 3*len + 1) )) + if (!(str = y_new(char, 3*len + 1))) return ""; while(instr[ipos]) { @@ -188,7 +188,7 @@ char *yahoo_urldecode(const char *instr) unsigned dec; int len = strlen(instr); - if (!(str = y_new(char, len+1) )) + if (!(str = y_new(char, len+1))) return ""; while(instr[ipos]) { @@ -235,7 +235,7 @@ char *yahoo_xmldecode(const char *instr) unsigned dec; int len = strlen(instr); - if (!(str = y_new(char, len+1) )) + if (!(str = y_new(char, len+1))) return ""; while(instr[ipos]) { @@ -398,14 +398,14 @@ static void yahoo_got_url_fd(int id, int fd, int error, void *data) break; if ( !strncasecmp(buff, "Content-length:", - strlen("Content-length:")) ) { + strlen("Content-length:"))) { tmp = strrchr(buff, ' '); if(tmp) filesize = atol(tmp); } if ( !strncasecmp(buff, "Content-disposition:", - strlen("Content-disposition:")) ) { + strlen("Content-disposition:"))) { tmp = strstr(buff, "name="); if(tmp) { tmp+=strlen("name="); -- cgit v1.2.3