mirror of
https://github.com/rkd77/elinks.git
synced 2024-09-27 02:56:18 -04: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
|
* ELinks must just cast the pointer the best it can and hope
|
||||||
* that the conversions match. */
|
* that the conversions match. */
|
||||||
gnutls_transport_set_ptr(*((ssl_t *) socket->ssl),
|
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 */
|
/* TODO: Some certificates fuss. --pasky */
|
||||||
#endif
|
#endif
|
||||||
|
@ -140,12 +140,6 @@ typedef unsigned long long uint32_t;
|
|||||||
#define __SHRT_MAX__ 0x7fff
|
#define __SHRT_MAX__ 0x7fff
|
||||||
#endif
|
#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:
|
/* To print off_t offset, ELinks does:
|
||||||
*
|
*
|
||||||
* printf("%" OFF_PRINT_FORMAT, (off_print_T) offset);
|
* printf("%" OFF_PRINT_FORMAT, (off_print_T) offset);
|
||||||
|
Loading…
Reference in New Issue
Block a user