...
authorvb
Wed, 11 Mar 2015 15:54:19 +0100
changeset 107fbef1c59da96
parent 106 2314840107ce
child 108 be7d5a542952
...
src/pEpEngine.c
src/pgp_gpg.c
src/platform_windows.cpp
src/stringlist.c
src/stringpair.c
     1.1 --- a/src/pEpEngine.c	Wed Mar 11 15:38:51 2015 +0100
     1.2 +++ b/src/pEpEngine.c	Wed Mar 11 15:54:19 2015 +0100
     1.3 @@ -33,7 +33,7 @@
     1.4  	assert(session);
     1.5  	*session = NULL;
     1.6  
     1.7 -    pEpSession *_session = (pEpSession *) calloc(1, sizeof(pEpSession));
     1.8 +    pEpSession *_session = calloc(1, sizeof(pEpSession));
     1.9  	assert(_session);
    1.10  	if (_session == NULL)
    1.11  		goto enomem;
     2.1 --- a/src/pgp_gpg.c	Wed Mar 11 15:38:51 2015 +0100
     2.2 +++ b/src/pgp_gpg.c	Wed Mar 11 15:54:19 2015 +0100
     2.3 @@ -684,7 +684,7 @@
     2.4              return PEP_UNKNOWN_ERROR;
     2.5      }
     2.6  
     2.7 -    rcpt = (gpgme_key_t *) calloc(stringlist_length(keylist) + 1,
     2.8 +    rcpt = calloc(stringlist_length(keylist) + 1,
     2.9          sizeof(gpgme_key_t));
    2.10      assert(rcpt);
    2.11      if (rcpt == NULL) {
     3.1 --- a/src/platform_windows.cpp	Wed Mar 11 15:38:51 2015 +0100
     3.2 +++ b/src/platform_windows.cpp	Wed Mar 11 15:54:19 2015 +0100
     3.3 @@ -205,7 +205,7 @@
     3.4  
     3.5  char *strndup(const char *s1, size_t n)
     3.6  {
     3.7 -    char *str = (char *) calloc(n + 1, 1);
     3.8 +    char *str = calloc(n + 1, 1);
     3.9      if (str == NULL)
    3.10          return NULL;
    3.11  
     4.1 --- a/src/stringlist.c	Wed Mar 11 15:38:51 2015 +0100
     4.2 +++ b/src/stringlist.c	Wed Mar 11 15:54:19 2015 +0100
     4.3 @@ -7,7 +7,7 @@
     4.4  
     4.5  DYNAMIC_API stringlist_t *new_stringlist(const char *value)
     4.6  {
     4.7 -    stringlist_t *result = (stringlist_t *) calloc(1, sizeof(stringlist_t));
     4.8 +    stringlist_t *result = calloc(1, sizeof(stringlist_t));
     4.9      if (result && value) {
    4.10          result->value = strdup(value);
    4.11          assert(result->value);
     5.1 --- a/src/stringpair.c	Wed Mar 11 15:38:51 2015 +0100
     5.2 +++ b/src/stringpair.c	Wed Mar 11 15:54:19 2015 +0100
     5.3 @@ -50,8 +50,7 @@
     5.4  
     5.5  DYNAMIC_API stringpair_list_t *new_stringpair_list(const stringpair_t *value)
     5.6  {
     5.7 -    stringpair_list_t *result = (stringpair_list_t *) calloc(1,
     5.8 -            sizeof(stringpair_list_t));
     5.9 +    stringpair_list_t *result = calloc(1, sizeof(stringpair_list_t));
    5.10      if (result && value) {
    5.11          result->value = stringpair_dup(value);
    5.12          if (result->value == 0) {