Changeset 56f260a for lib


Ignore:
Timestamp:
2007-11-22T22:56:52Z (12 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
df6d1da
Parents:
d75597b
Message:

Some changes to get rid of compiler warnings. (And disabling strict
aliasing because there are too many warnings about it. :-P)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/ssl_gnutls.c

    rd75597b r56f260a  
    3535
    3636static gboolean initialized = FALSE;
     37
     38#include <limits.h>
     39
     40#if defined(ULONG_MAX) && ULONG_MAX > 4294967295UL
     41#define GNUTLS_STUPID_CAST (long)
     42#else
     43#define GNUTLS_STUPID_CAST (int)
     44#endif
    3745
    3846struct scd
     
    125133       
    126134        sock_make_nonblocking( conn->fd );
    127         gnutls_transport_set_ptr( conn->session, (gnutls_transport_ptr) conn->fd );
     135        gnutls_transport_set_ptr( conn->session, (gnutls_transport_ptr) GNUTLS_STUPID_CAST conn->fd );
    128136       
    129137        return ssl_handshake( data, source, cond );
Note: See TracChangeset for help on using the changeset viewer.