comms/x3270: fix -Wincompatible-pointer-types (socklen_t vs size_t)

This commit is contained in:
tb
2026-05-20 22:53:08 +00:00
parent 074dd98392
commit 2deed862b5
2 changed files with 15 additions and 1 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
COMMENT= IBM 3270 terminal emulator for the X Window System COMMENT= IBM 3270 terminal emulator for the X Window System
DISTNAME= x3270-3.3.6 DISTNAME= x3270-3.3.6
REVISION= 5 REVISION= 6
CATEGORIES= comms CATEGORIES= comms
HOMEPAGE= http://x3270.bgp.nu/ HOMEPAGE= http://x3270.bgp.nu/
+14
View File
@@ -0,0 +1,14 @@
macros.c:652:50: error: incompatible pointer types passing 'size_t *' (aka 'unsigned long *') to parameter of type 'socklen_t *' (aka 'unsigned int *') [-Wincompatible-pointer-types]
Index: macros.c
--- macros.c.orig
+++ macros.c
@@ -643,7 +643,7 @@ socket_connection(void)
{
int fd;
struct sockaddr_un ssun;
- size_t len = sizeof(ssun);
+ socklen_t len = sizeof(ssun);
sms_t *s;
/* Accept the connection. */