From a1b438a1400de52fa85a5e4152eb0a3790d5ad32 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Sun, 7 Apr 2024 19:55:02 +0200 Subject: [PATCH] [types] get rid of longptr_T --- src/network/ssl/socket.c | 2 +- src/osdep/types.h | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) 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);