diff --git a/src/network/ssl/socket.c b/src/network/ssl/socket.c index e0c34179..eca7ed3d 100644 --- a/src/network/ssl/socket.c +++ b/src/network/ssl/socket.c @@ -537,7 +537,7 @@ ssl_connect(struct socket *socket) * ELinks must just cast the pointer the best it can and hope * that the conversions match. */ gnutls_transport_set_ptr(*((ssl_t *) socket->ssl), - (gnutls_transport_ptr_t) (longptr_T) socket->fd); + (gnutls_transport_ptr_t) (intptr_t) socket->fd); /* TODO: Some certificates fuss. --pasky */ #endif diff --git a/src/osdep/types.h b/src/osdep/types.h index eb0c4c25..b3c31ea4 100644 --- a/src/osdep/types.h +++ b/src/osdep/types.h @@ -140,12 +140,6 @@ typedef unsigned long long uint32_t; #define __SHRT_MAX__ 0x7fff #endif -/* - * long l; (long) (longptr_T) l == l - * void *p; (void *) (longptr_T) p == p - */ -typedef long longptr_T; - /* To print off_t offset, ELinks does: * * printf("%" OFF_PRINT_FORMAT, (off_print_T) offset);