mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[types] get rid of longptr_T
This commit is contained in:
parent
699531f541
commit
a1b438a140
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user