summaryrefslogtreecommitdiff
path: root/protocols/Yahoo/src/libyahoo2/yahoo_util.c
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/libyahoo2/yahoo_util.c
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/libyahoo2/yahoo_util.c')
-rw-r--r--protocols/Yahoo/src/libyahoo2/yahoo_util.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/protocols/Yahoo/src/libyahoo2/yahoo_util.c b/protocols/Yahoo/src/libyahoo2/yahoo_util.c
index a2de75c050..cd76a77ba7 100644
--- a/protocols/Yahoo/src/libyahoo2/yahoo_util.c
+++ b/protocols/Yahoo/src/libyahoo2/yahoo_util.c
@@ -44,7 +44,7 @@ char * y_string_append(char * string, char * append)
int size = strlen(string) + strlen(append) + 1;
char * new_string = y_renew(char, string, size);
- if(new_string == NULL) {
+ if (new_string == NULL) {
new_string = y_new(char, size);
strcpy(new_string, string);
FREE(string);
@@ -60,7 +60,7 @@ char * y_string_append(char * string, char * append)
unsigned int n, i = 0;
char *result = NULL;
- if(in == NULL || *in == '\0')
+ if (in == NULL || *in == '\0')
return "";
result = y_new(char, strlen(in) * 2 + 1);
@@ -86,7 +86,7 @@ char * y_utf8_to_str(const char *in)
unsigned int n;
char *result = NULL;
- if(in == NULL || *in == '\0')
+ if (in == NULL || *in == '\0')
return "";
result = y_new(char, strlen(in) + 1);
@@ -122,13 +122,13 @@ char ** y_strsplit(char * str, char * sep, int nelem)
char *s, *p;
int i=0;
int l = strlen(sep);
- if(nelem <= 0) {
+ if (nelem <= 0) {
char * s;
nelem=0;
if (*str) {
for(s=strstr(str, sep); s; s=strstr(s+l, sep),nelem++)
;
- if(strcmp(str+strlen(str)-l, sep))
+ if (strcmp(str+strlen(str)-l, sep))
nelem++;
}
}
@@ -142,7 +142,7 @@ char ** y_strsplit(char * str, char * sep, int nelem)
vector[i][len] = '\0';
}
- if(i<nelem && *str) /* str didn't end with sep, and str isn't empty */
+ if (i<nelem && *str) /* str didn't end with sep, and str isn't empty */
vector[i++] = strdup(p);
vector[i] = NULL;
@@ -153,7 +153,7 @@ char ** y_strsplit(char * str, char * sep, int nelem)
void * y_memdup(const void * addr, int n)
{
void * new_chunk = malloc(n);
- if(new_chunk)
+ if (new_chunk)
memcpy(new_chunk, addr, n);
return new_chunk;
}