Changeset 14576


Ignore:
Timestamp:
Oct 14, 2015, 8:22:17 AM (6 years ago)
Author:
mikedld
Message:

#6005: Style fix for previous commit (no functional changes)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/crypto-utils-openssl.c

    r14575 r14576  
    148148openssl_evp_cipher_context_new (void)
    149149{
    150   EVP_CIPHER_CTX * ctx = tr_new (EVP_CIPHER_CTX, 1);
    151   if (ctx != NULL)
    152     EVP_CIPHER_CTX_init (ctx);
    153   return ctx;
     150  EVP_CIPHER_CTX * handle = tr_new (EVP_CIPHER_CTX, 1);
     151  if (handle != NULL)
     152    EVP_CIPHER_CTX_init (handle);
     153  return handle;
    154154}
    155155
    156156static void
    157 openssl_evp_cipher_context_free (EVP_CIPHER_CTX * ctx)
    158 {
    159   if (ctx)
    160     {
    161       EVP_CIPHER_CTX_cleanup (ctx);
    162       tr_free (ctx);
    163     }
     157openssl_evp_cipher_context_free (EVP_CIPHER_CTX * handle)
     158{
     159  if (handle == NULL)
     160    return;
     161
     162  EVP_CIPHER_CTX_cleanup (handle);
     163  tr_free (handle);
    164164}
    165165
Note: See TracChangeset for help on using the changeset viewer.