Changeset 537d9b9 for lib/ssl_gnutls.c


Ignore:
Timestamp:
2016-11-20T08:40:36Z (7 years ago)
Author:
dequis <dx@…>
Children:
3f44e43
Parents:
ba52ac5 (diff), 9f03c47 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge master up to commit '9f03c47' into parson

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/ssl_gnutls.c

    rba52ac5 r537d9b9  
    4242#include <limits.h>
    4343
    44 #if defined(ULONG_MAX) && ULONG_MAX > 4294967295UL
    45 #define GNUTLS_STUPID_CAST (long)
    46 #else
    47 #define GNUTLS_STUPID_CAST (int)
    48 #endif
    49 
    5044#define SSLDEBUG 0
    5145
     
    335329
    336330        sock_make_nonblocking(conn->fd);
    337         gnutls_transport_set_ptr(conn->session, (gnutls_transport_ptr_t) GNUTLS_STUPID_CAST conn->fd);
     331        gnutls_transport_set_ptr(conn->session, (gnutls_transport_ptr_t) (long) conn->fd);
    338332
    339333        ssl_cache_resume(conn);
Note: See TracChangeset for help on using the changeset viewer.