diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-02 20:55:18 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-02 20:55:18 +0000 |
commit | 78c0815c4118fe24ab78cce2dc48a6232dcd824a (patch) | |
tree | 8512c50df70b8dd80c919e88ade3419207c95956 /plugins/MirOTR/libotr-3.2.0/src | |
parent | ce816d83a8c75808e0eb06832592bffefe4a8dc4 (diff) |
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@270 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirOTR/libotr-3.2.0/src')
-rw-r--r-- | plugins/MirOTR/libotr-3.2.0/src/proto.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/MirOTR/libotr-3.2.0/src/proto.c b/plugins/MirOTR/libotr-3.2.0/src/proto.c index 9f76455a9f..75782d6a63 100644 --- a/plugins/MirOTR/libotr-3.2.0/src/proto.c +++ b/plugins/MirOTR/libotr-3.2.0/src/proto.c @@ -259,7 +259,7 @@ unsigned int otrl_proto_query_bestversion(const char *querymsg, ++otrtag; } if (*otrtag == 'v') { - for(++otrtag; *otrtag && *otrtag != '?'; ++otrtag) { + for (++otrtag; *otrtag && *otrtag != '?'; ++otrtag) { switch(*otrtag) { case '2': query_versions |= (1<<1); @@ -840,7 +840,7 @@ gcry_error_t otrl_proto_fragment_create(int mms, int fragment_count, int headerlen = 19; /* Should vary by number of msgs */ char **fragmentarray = malloc(fragment_count * sizeof(char*)); - if(!fragmentarray) return gcry_error(GPG_ERR_ENOMEM); + if (!fragmentarray) return gcry_error(GPG_ERR_ENOMEM); /* * Find the next message fragment and store it in the array. @@ -855,7 +855,7 @@ gcry_error_t otrl_proto_fragment_create(int mms, int fragment_count, fragdatalen = mms - headerlen; } fragdata = malloc(fragdatalen + 1); - if(!fragdata) { + if (!fragdata) { for (i=0; i<curfrag-1; free(fragmentarray[i++])) {} free(fragmentarray); return gcry_error(GPG_ERR_ENOMEM); @@ -864,7 +864,7 @@ gcry_error_t otrl_proto_fragment_create(int mms, int fragment_count, fragdata[fragdatalen] = 0; fragmentmsg = malloc(fragdatalen+headerlen+1); - if(!fragmentmsg) { + if (!fragmentmsg) { for (i=0; i<curfrag-1; free(fragmentarray[i++])) {} free(fragmentarray); free(fragdata); |