1
0
Fork 0

[types] get rid of longptr_T

This commit is contained in:
Witold Filipczyk 2024-04-07 19:55:02 +02:00
parent 699531f541
commit a1b438a140
2 changed files with 1 additions and 7 deletions

View File

@ -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

View File

@ -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);